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.
Thanks Rod, works perfectly as usual. ;-)
I see that too, but when I click on the cart icon there is a dropdown with the amount in the cart in black and below it the text "view cart" in white on a white background. I assume the "view text" is a button and getting its color for my top pallet button setting.
I have my top pallet buttons set to white text with a transparent background but when there is an item in the cart the "view cart" button is invisible. Is there a way I can change the "view cart" button text to something other than the top pallet button text color or change the dropdown background?
Thanks.
Cool Rod, I've been trying to figure out how to do this too. Thanks.
Google uses https as a factor in search engine ranking, fwiw. How much difference it makes I have no clue.
I switched to https a few months ago using a certificate from letsencrypt (free). It was a pretty simple change; other than changing all hardcoded links in Backlight I added a rewrite rule to .htaccess to force all incoming http traffic to https.
I am self hosted, though, and I don't know if your provider will allow you to use a certificate from letsencrypt.
I've had a few SPAM emails so I implemented it. Very simple to do and, at least from my experience, seems to be somewhat of a standard around the web.
FWIW, this is the css styling I used:
#social-align
{
text-align: right;
float: none;
padding-right: 24px;
}
#social-align.icon {
display: inline-block;
}
Thanks Daniel, I should have caught that.
This is probably a little clunky but it seems to work ok.
function ttg_single_bottom ( $style, $path ) {
$actual_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$img = substr(strrchr(substr($_SERVER["REQUEST_URI"], 0, strrpos($_SERVER["REQUEST_URI"],"-single.php")), '/'), 1);
$imgpath = substr($_SERVER["REQUEST_URI"], 0, strrpos($_SERVER["REQUEST_URI"],$img)) . 'photos/' . $img . '.jpg';
$imgfullpath = "https://$_SERVER[HTTP_HOST]$imgpath";
echo '
<div id=social-align>
<a class="icon" target="_blank" href="http://www.facebook.com/sharer/sharer.php?u='.$actual_link.'" title="Share on Facebook">
<i class="fa fa-facebook-official" style="color:#3b5998; font-size: 150%;"></i></a>
<a class="icon" target="_blank" href="http://www.twitter.com/intent/tweet?url='.$actual_link.'" title="Tweet">
<i class="fa fa-twitter" style="color:#1da1f2; font-size: 150%;"></i></a>
<a class="icon" target="_blank" href="https://plus.google.com/share?url='.$actual_link.'" title="Share on Google Plus">
<i class="fa fa-google-plus-official" style="color:#dd4b39; font-size: 150%;"></i></a>
<a class="icon" target="_blank" href="http://pinterest.com/pin/create/button/?url='.$actual_link.'&media='.$imgfullpath.'" title="Share on Pinterest">
<i class="fa fa-pinterest-p" style="color:#cb2027; font-size: 150%;" id="social_media_04"></i></a>
<a class="icon" target="_blank" href="http://stumbleupon.com/submit?url='.$imgfullpath.'" title="Share on Stumbleupon">
<i class="fa fa-stumbleupon" style="color:#EB4823; font-size: 150%;" id="social_media_04"></i></a>
<a class="icon" target="_blank" href="mailto:?subject=An image you might like&body='.$actual_link.'" title="Share via email">
<i class="fa fa-envelope-o" style="font-size: 150%;"></i></a>
</div>
';
}
Thanks. I do have a child theme so I'll look at that when I get back off the road.
I should probably know this, but is there a reason this doesn't work on my blog? Works fine on everything else.
Thanks.
I actually cut and pasted the code from his site.
I just tried that code and it behaves the same way for me with or without display: inline. The arrow stays at the bottom and does return to the top but doesn't scroll up and down like Monte's.
Do you have cart enabled in your albums in Lightroom? And is cart enabled in your album template in Backlight?
Ah, cool - that's good to know. Thanks.
Does that have anything to do with the resize issues discussed before? Like when changing from portrait to landscape on mobile?
This code that Rod provided a while back will put it outside the frame:
.gallery.vegas-container { box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.5); }
I just tried renaming a single file in Lightroom and then republished it. I ended up with two thumbnails in the folder as well. The old thumbnail doesn't show in the gallery, though.
I think it's best if you remove the files for the galleries in Lightroom, publish, rename the files and add them to your galleries, and then publish again. This will clean everything up on the server and is all done in Lightroom.
I just recently got that book, it's a good one. It's a far cry from my old mainframe days.
Thanks. As you might have figured out, I'm using Backlight to learn more about css. ;-)
I'm not using any custom css for my logo, just this code:
function ttg_pallet_top_title( $style, $path ) {
echo '
<li class="logo">
<a href="/">
<picture>
<source media="(max-width: 440px)" srcset="/backlight/custom/images/SL_Short_Logo.png">
<img src="/backlight/custom/images/SL_Top_Pallet_WHT_small.png">
</picture>
</a>
</li>
';
return false;
} // END
With class="logo" it works fine, without it hides the menu items.
On my top pallet logo if I drop the class "logo" my menu items don't show up, but they are still there as I mouse over them.