There was at least one brief confrontation with police.
President Donald Trump on Wednesday said he and first lady Melania Trump "were treated very nicely" during their Tuesday visit to Pittsburgh to pay their respects to victims of this weekend's anti-Semitic shooting.
They were accompanied by Ivanka Trump and her husband, Jared Kushner, and Treasury Secretary Steven T. Mnuchin, all of whom are Jewish.
Trump stepped into the role of national consoler, a title he wears uncomfortably, as he arrived in Squirrel Hill, the neighborhood where he faced an uneasy welcome.
Near the synagogue, flowers, candles and chalk drawings filled the corner, including a small rock painted with the number "6,000,011", adding the victims this week to the estimated number of Jews killed in the Holocaust.
Many held signs and banners referring to Trump's divisiveness and embrace of white nationalism.
Hundreds of protesters gathered on the street chanting slogans against the president.
On Wednesday morning, President Trump tweeted another video of his visit to Pittsburgh, noting that he had been very well received, even though the "fake news" media had criticized him and focused on left-wing protests.
Tree of Life Rabbi Jeffrey Myers told ABC on Monday that the President of the United States was always welcome to visit.
As the president was driven through Pittsburgh, some bystanders made obscene gestures to his motorcade and thumbs-down gestures, reports AP news agency. Congressional leaders, including Speaker of the House Paul Ryan, turned down an opportunity to travel with the president, with Ryan's office saying the notice was too short. Democratic Senate Minority Leader Chuck Schumer and Democratic House Minority Leader Nancy Pelosi also opted not to participate.
Questions have long swirled about the president's credibility as a unifier.
Deux hommes pour un poste, l'Assemblée nationale en crise — Algérie
Bouhadja, âgé de 80 ans, a martelé, ce mercredi 24 octobre 2018 , qu'il reste et demeure le président légal et légitime de l'APN . Bouchareb a aussi rendu un vibrant hommage à l'Armée nationale populaire (ANP) pour son rôle dans la protection de l'Algérie.
"President Mr. Trump, you are not welcome in Pittsburgh until you fully renounce white nationalism".
"While our community is still processing this violence from a few days ago, we recognise that it did not happen in a vacuum", said Ardon Shorr, who helped organise one protest not far from the Jewish Community Centre, where the funeral for one of the victims of the attack was held just a few hours earlier. It was not immediately clear whether Trump would meet with any family members.
Before his visit, the president condemned anti-Semitism.
Residents are divided. For Marianne Novy, Trump isn't wanted "unless he really changes his ways".
For David Dvir, politics should take a pause for grief.
While Trump works to build up an extra-parliamentary movement of the far-right, the Democrats promote the Federal Bureau of Investigation, the Central Intelligence Agency and the military as the upholders of stability against "extremists" on both the left and right who "sow divisions".
"It's part of his program to instigate his base", Werber said, and "bigots are coming out of the woodwork".
Ms Novy, 73, a retired college English professor, said she signed an open letter asking Mr Trump not to come to Pittsburgh.
"I feel that Trump is promoting hatred against immigrants and minorities and this encourages these people to commit these acts of violence", said Buena, a young woman from Pittsburgh.
Just minutes before the synagogue attack, the shooter apparently used social media to rage against HIAS, a Jewish organisation that resettles refugees under contract with the United States government.
Progressive Jewish organization Bend the Arc organized one of the protests against the president's visit.