Answer by taking a quote from the following article:

For the theatre adaptation, see Shakespeare in Love (play). Shakespeare in Love is a 1998 American romantic period comedy-drama film directed by John Madden, written by Marc Norman and playwright Tom Stoppard. The film depicts an imaginary love affair involving Viola de Lesseps (Gwyneth Paltrow) and playwright William Shakespeare (Joseph Fiennes) while he was writing Romeo and Juliet. Several characters are based on historical figures, and many of the characters, lines, and plot devices allude to Shakespeare's plays.

The original idea for Shakespeare in Love came to screenwriter Marc Norman in the late 1980s after a rudimentary pitch from his son Zachary. Norman wrote a draft screenplay which he presented to director Edward Zwick, which attracted Julia Roberts, who agreed to play Viola. However, Zwick disliked Norman's screenplay and hired the playwright Tom Stoppard to improve it (Stoppard's first major success had been with the Shakespeare-themed play Rosencrantz & Guildenstern Are Dead). The film went into production in 1991 at Universal, with Zwick as director, but although sets and costumes were in construction, Shakespeare had not yet been cast, because Roberts insisted that only Daniel Day-Lewis could play the role. Day-Lewis was uninterested, and when Roberts failed to persuade him, she withdrew from the film, six weeks before shooting was due to begin. The production went into turnaround, and Zwick was unable to persuade other studios to take up the screenplay. Eventually, Zwick got Miramax interested in the screenplay, but Miramax chose John Madden as director. Miramax boss Harvey Weinstein acted as producer, and persuaded Ben Affleck to take a small role as Ned Alleyn. The film was considerably reworked after the first test screenings. The scene with Shakespeare and Viola in the punt was re-shot, to make it more emotional, and some lines were re-recorded to clarify the reasons why Viola had to marry Wessex. The ending was re-shot several times, until Stoppard eventually came up with the idea of Viola suggesting to Shakespeare that their parting could inspire his next play. Among the locations used in the production were Hatfield House, Hertfordshire (for the fireworks scene), Broughton Castle, Oxfordshire (which played the role of the de Lesseps home), the beach at Holkham in Norfolk, the chapel at Eton College, Berkshire, and the Great Hall of Middle Temple, London.

Was the title or anything else changed?
The ending was re-shot several times, until Stoppard eventually came up with the idea of Viola suggesting to Shakespeare that their parting could inspire his next play.