Thanks Phil, This really helped and solved the problem. However I have some issues:
I worked according to your instructions and updated the index.html file - It solved the problem. But when I publish again the web map, I get a new index.html file without this manual update. I looked to the link you sent me in github. They discuss there doing this kind of manual update in the template. So I went to the templates files in C:\Users\username\.qgis2\qgis2web\templates folder and made this manual update in the template files. This solves the problem when I re-publish the map. But it doesn't solve the problem when I make an update in the map and save it in QGIS Desktop. I guess a solution for this requires an enhancement in QGIS Desktop. Per your advice I opened a new enhancement request on github. Thanks again Yossi בתאריך יום ה׳, 2 באוג׳ 2018 ב-11:19 מאת Philip Barlow < [email protected]>: > Hi Yossi, > > > > You could just add something like this to the index.html output at the > bottom between </script> and the </body>? > > > > </div> > > <div style="position: fixed; left: 100px; > top: 20px; background-color: white; opacity:0.6; padding:0px;z-index:2;"> > > <h1>Your title</h1> > > > > </div> > > > > The z-index is important, make sure you add it to the div id for the map > or else your title will be underneath your map and you won’t see it. > > > > Like this: > > <div id="map" style=*"z-index:1;">* > > > > You’ll find some more info here: > > https://github.com/tomchadwin/qgis2web/issues/415 > > > > You could put in an enhancement request on github? > > > > Hope this helps. > > > > Phil > > > > > > *From:* Qgis-user [mailto:[email protected]] *On Behalf > Of *Yossi Rokni > *Sent:* 02 August 2018 06:57 > *To:* [email protected] > *Subject:* [Qgis-user] Fwd: QGIS web map - add author name > > > > I created my first web map in QGIS, using the good instructions in this > web page: > > https://www.qgistutorials.com/en/docs/web_mapping_with_qgis2web.html > > > > I want to add a fixed text > > (such as author's name) > > at the bottom of the map. > > Is it possible to do it by updating the file qgis2web.js or any other way? > > > > I am not familiar with java script - it would be great if you could > provide me > > an example of > > the relevant java script command that I need to add into qgis2web.js. > > > > Some more details: > > I use QGIS version 2.18 (I tried using QGIS 3.0, but I couldn't create a > web map in this version). > > I created the web map using qgis2web plugin. > > > > Thanks > > Yossi > > > > > > > Mae'r Awdurdod yn hapus i gyfathrebu yn Gymraeg neu yn Saesneg > > The Authority is happy to communicate in Welsh or English > *********************************************************************** > Website www.pembrokeshirecoast.org.uk > Follow us on Twitter <http://twitter.com/PembsCoast> > Join us on Facebook > <http://www.facebook.com/group.php?gid=26330984774&ref=ts> > Watch us on Youtube > <http://www.youtube.com/user/pcnpa2008#p/u/0/Tw8Udou0p5k> > Look at us on Flickr <http://www.flickr.com/photos/pembrokeshirecoast/> > > > This email and any attached files should only be read by those persons to > whom > they are addressed and be used by them only for their intended purpose. > If you are not the intended recipient please destroy all copies and inform > the > sender by return email. > > Please note that the contents of this email may be subject to public > disclosure > under the Freedom of Information Act 2000 and therefore the > confidentiality of > this message and any reply cannot be guaranteed. > > Click here <http://www.pembrokeshirecoast.wales/default.asp?PID=413> to > view PCNPA Privacy Notice – Keeping your Information Safe > > For further information on the PCNPA please visit our website at > www.pembrokeshirecoast.org.uk > > Please consider the environment before printing this email. > > Dim ond y personau hynny yr anfonwyd yr e-bost hwn atynt ac unrhyw > ffeiliau sydd > ynghlwm ddylid eu darllen, a dim ond hwy ddylid eu defnyddio at y diben y > bwriadwyd hwy. > Os nad y chi yw'r person y bwriadwyd eu derbyn a fyddech gystal â > dinistrio pob copi a rhoi > gwybod i'r anfonwr gyda throad yr e-bost. > > Noder os gwelwch yn dda y gall cynnwys yr e-bost hwn orfod cael ei > ddatgelu i'r cyhoedd o > dan Deddf Rhyddid Gwybodaeth 2000 ac felly ni ellir gwarantu cyfrinachedd > y neges hon > nac unrhyw ateb. > > Cliciwch yma > <http://www.pembrokeshirecoast.wales/default.asp?pid=413&LangID=2> i weld > Hysbysiad Preifatrwydd APCAP - Cadw eich Gwybodaeth yn Ddiogel > > Am ragor o wybodaeth am APCAP ymwelwch â'n gwefan ar > www.arfordirpenfro.org.uk > > Ystyrier yr amgylchedd cyn argraffu'r e-bost hwn os gwelwch yn dda. > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user -- בברכה יוסי רוקני
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
