Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Looks like your original code has an error. The image link should be
src ="https://shield.sitelock.com/shield/rainerhassmann.de"oops... it should be: function ttg_footer_bottom(...
I try to keep it in english so others can follow the thread as well ![]()
Do you have a link to the page where it should show?
In Backlight's Album Templates, you can select if your Page Copy is above or below the gallery. If you would like to have text above and below, then you would have to use phplugins.
Sorry, I had to two opening brackets instead of one in my code.... But you have to check that you properly copy the code: no space between $ and style/path, closing SiteLock needs to be all capital.
Who can help me with this?
Where should the code for the sitelock seal be copied:<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> < / a>Thank you in advance
I would put it into the footer using phplugins. Maybe
function ttg_footer_bottom( $style, $path ) {
echo <<<SITELOCK
<div id="sitelock">
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> </a>
</div>
SITELOCK;
} // END /**/I put it inside a <div> so you can use some custom.css to place it. Maybe #sitelock {float:right;}
updated code to fix errors
Google fonts are loaded from Google.
For example, I'm using the "Lato" font from Google on my test site.
This line is added to the page source code, calling the font from Google:<link href='https://fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic,300' rel='stylesheet' type='text/css'>
If you are inclined to do it, you can host it on your own server. There are many tutorials out there, but this seems to be one of the easiest ones: https://canonicalized.com/local-font/
The css code belongs into your custom.css and the path to the font files needs to be adjusted as well.
Terry, I would make a new install of Backlight in a subdirectory and see if this works.
Which php version are you using?
Do you see the same behavior in Safari or Chrome?
As Matt suggested, I would disable all the Extensions and see if this makes a difference.
For Wordpress, you would need to create a new Page Template that has two columns.
Something like: Clone your existing template, then edit the new template and select a two columns layout in the layout section, next select this page template in your Wordpress Theme Template and do a Export Theme to Wordpress, and you then you should be able to add your widgets again.
Sounds like a server issue.
Did you get an error when you tried to publish the album?
I’m assuming it would be the same for a page that has an inserted album, but I’ve not specifically checked that out yet.
Rod, wasn't this the workaround you discovered a while ago to have a default/social image on Backlight pages by inserting an 'invisible' album?
Have been following this post with keen interest. I've manged to get the cookie consent warning to appear very nicely. But there's just one thing bugging me, well...vexing me, actually. Pixelmover has his warning link to a cookie-consent page that opens in a new window. Daniel has his warning link to a cookie-consent page that opens in the same window. I'm assuming this is an "a href target="_blank" thing or an "a href target="_self" thing but I'll be an expletive deleted if I can figure out where that's hiding. Thought I had it tracked down the center of that big block of code in cookieconsent.min.js but I was wrong. My cookie_consent warning links to a page that open in a new window and I'd dearly love to have it open in the same window. What's the secret?
Mark
A link to a page where the problem is shown is always helpful. But if you want to open a link in the same window, just don't use target.
I have no clue. My first big question after investigating things is.. Where are the files for http://www.divinemayhem.com/weddings located? I have a /Weddings/ folder in my /public_html, but those are independently created sites for my individual wedding clients. I don't see a public_html/weddings folder at all, and yet the page works! Is it stored somewhere else? I see all of the other pages at the root level, but no 'weddings'.
I deleted that page and created another with the slug dms-wedding because I thought that it may be looking in the capital W weddings subfolder, but when I saved and refreshed my FTP connection, there's no dms-wedding file or folder.
I feel like an idiot.. What am I missing?
Pages that you create with Backlight are not physically present. They are served by Backlight using a combination of .htaccess and index.php.
Are you using the latest version of the different modules?
Hmm.. I had the cover photo as 'Random'. I changed it to a specific photo and renamed the slideshow/album, published it but nothing has changed.
Hmm... something definitely changed... There is no social image anymore:
<meta property="og:image" content="" />Before you had a link to DSC1128-c.jpg. Strange that nothing is shown at all. I would select 'clear template cache' in Backlight > Designer.
I think to remember that the social image is taken from the slideshow album (eg, http://www.divinemayhem.com/galleries/0 … lideshow/). Did you set the Cover Image for your wedding slideshow? This is done in Lr Publisher > Album > Edit Album.
Daniel Leu wrote:Looks like you have solved it...
That's right, Daniel. However, I would not have been able to do this without Rod´s support. Thanks again, Rod. And you, too, of course.
Now a little fine-tuning on the album and then I can replace the old page with the Pangolin test page
Ahh... didn't notice that there was a second page to the thread! Looking nice now!
Had now internet for a few days.... I copied the content of cookieconsent.min.css into my custom.css file and as Rod guessed, added cookieconsent.min.js to /backlight/custom/js.
But I would like the hover effect to be applied to both the thumbnails and the figure caption at the same time. No matter if I touch the thumbnails or the figure caption.
Currently only one or the other is happening.
Looks like you have solved it... ![]()
I use exactly the same code on my site as well. Just add it using the ttg_head phplugins' API function:
function ttg_head( $style, $path ) {
echo '
.... this is where the code belongs
';
}I made two changes: I added the cookieconsent specific CSS to my custom.css file and copied the javascript code to my own site at backlight/custom/js/cookieconsent.min.js. This way my site does not depend on external code.
Better would be to use your own CSS class. This way, you can target this search block and not affect any other design elements:
function ttg_footer_top( $style, $path ) {
echo '
<div id="search_footer" class="collapse clearfix">
<form action="/backlight/search" method="GET">
<input type="text" id="q" name="q" placeholder="Fotosuche" class="footsearch_footer" value=""/>
<button type="submit" class="footsearch_footer">Fotos suchen</button>
</form>
</div> <!-- #search -->
';
return true;
}
//ENDI just added '_footer' to all the classes and IDs. Now just add your custom CSS code (yeah, copy search specific Backlight CSS code, add _footer and modify it).
For the action, I wouldn't use an absolute path. So when you move this code to your main site, it continuous to work without any issues.
You set the code in Backlight > Settings > Website Settings
Hey guys, still no joy with this..
the latest gallery Yiannakis & Natasha's Wedding still low quality.
I've cleared browser and template cache.
Did you republish the album and check that the 'Push metadata without updating existing photos' is not set?
Cool, thanks Daniel! This has worked very well
Which browser do you use to find the right places? I'm still having so much trouble with that
Happy that it works for you now! It is not only finding the right place, but have an understanding how Backlight accomplishes certain things and be familiar with CSS. It's a process and I'm still learning every day ![]()
I use mostly Google Chrome and it's developer tools.