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.
When I try to access your site via https it says your certificate isn’t trusted. You can get a free one from letsencrypt.
Cool, I think I have had to do that once or twice as well but that might just be clearing the browser cache.
Did you export the theme to WordPress after you made the change?
I see galleries under download and there are pictures in the animals section.
It doesn't look like you have a gallery inserted in that page.
What is the link to the gallery in question?
You should post what errors you are seeing to help them help you.
Did you try the "Send Test Email" on the main Backlight page with debug messages turned on?
Did you republish the album(s) after changing the metadata?
Maybe try "float: left;"
Nice, I thought about doing something similar with switch / case to return different values for my various pages but never got around to it.
What I do is look at the URL ( $_SERVER[REQUEST_URI] ) as you mentioned. There may be a better way but I don't know it either.
I was playing with ttg_head the other day and it can, in fact, insert things in the <head> of a wordpress page but you need to use conditional logic to make sure the page you're on is in fact a wordpress one.
I agree, Rod's solution is a much better way.
Here's what I added just for fun on my site:
function ttg_head( $style, $path ) {
$page_id = "$_SERVER[REQUEST_URI]";
if($page_id == '/')
{
echo '
<meta name="description" content="Stalking Light Photography - Fine Art Wilderness Photography by Charlie Choc">
<meta name="keywords" content="photography,fine art,wilderness,wildlife,landscape,prints,birds,mammals,reptiles,desert,seascapes,mountains,great plains,flowers,waterfalls,fall colors">
';
}
else if ($page_id == '/about/')
{
echo '
<meta name="description" content="About Stalking Light Photography">
<meta name="keywords" content="photographer,nikon,lumix,mavic pro">
';
}
return false;
} // END
Kind of clumsy but it shows the jist of what you can do to add meta data to the home page and the about page. There is also a 'switch' 'case' construct that would be more elegant but 'if' 'else' is easier to explain to a non programmer. ;-)
You can do page specific using conditional logic in phplugins based on URL which you can get from"https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; but I agree it would be nice to have the option to set the variables in Backlight.
I just tried using phplugins to add the meta description and keywords to pages using the ttg_head hook at it seems to work but I won't be able to see how it affects search results for a while.
I keep my entire Lightroom folder on Dropbox so I can keep the catalog and plugins, settings, etc. synchronized between my desktop and laptop. You just have to make sure not to use both at the same time and to allow time for all files to synchronize when you switch.
When I travel I store my current photographs on an external drive and can publish to Backlight from the laptop and then when I get home I use Lightroom to move the photos to my permanent storage which also preserves any edits I did on my laptop,
I'm curious what impact it would have for the Pages modules were left in place but not used?
try adding <script> and </script> around the function code:
function ttg_head( $style, $path ) {
echo <<<SCRIPT
<script>
/(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXX-X', 'website.de');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>
SCRIPT;
return false;
} // END /**/
You can also just resize your browser window if you're lazy like me. ;-)
When I resized the width on a browser window with your main page it looked fine when it got down to mobile width although the text bullet points were aligned vertically instead of horizontally, or do you meanyou want it to resize so it will all fit without scrolling?
It looked fine to me too but I wasn't sure what he was trying to do.
Here's a link to some tips on responsive web design, but it can get complicated so you might be going down a rabbit hole.
At least it's less complicated than needing to create multiple images for different sized displays and writing the code for it.
I agree, the <picture> tag is more useful when the images are actually different rather than just different sized but in your case it is overkill.