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. I was tired of having the same image in multiple galleries as well. I also wanted to offer more options to view the images (like aspect ratio). I had seen this on quite a few other photographers sites (especially those done by Wide Range Galleries).
You do have to be very disciplined on keywords. I have a set of keywords grouped under a top level keyword of WEBSITE. Under that are the respective keywords used to create the galleries, REGION (for Location), SEASON, ASPECT, and Personal Favorite (to make the home page collections). I am probably going to add Recent when I start getting some processing done too! Before an image can go on the website, I go through the list and assign each keyword before publishing. I have Smart Collections setup that show what should be in the search gallery online to keep track. What is cool is that you can just change keywords and publish just metadata to add or remove an image from a gallery.
Monte
Thanks Matt! No big deal on switching to Backlight in the future. At least I can carry over the basic design and a lot of the background stuff. Looking forward to not having to wait on Lightroom!
The only real galleries on my galleries menu are the categories. All of the rest are search based. I really like how it came out. What would be nice is to be able to do a little customization for each search such as title, etc. but I am sure that would be some work.
Thanks again for the great work you have done with the templates. I had thought about switching over a lot of stuff to ArtStoreFronts, but couldn't give up the ability to really customize my site.
Thanks Rod! Yeah, I figure I will have to toy with the timing.
Thanks Rod! Targeting the slug worked. By the way I did see that you can only use a function once while reading the entire documentation this time (always helps!). You are now treated to a popup after 25 seconds on the home page (which still requires work, but at least I can see it now).
Thanks again - Monte
Hey Rod. Yes, there is another section with ttg_head, so I went ahead and tried the conditional statements. It doesn't lock up, but it never inserts the added code on the home page. Here is the new code (I have tried it with and without the return false statements):
function ttg_head_end( $style, $path ) {
if (G_STYLE == 'CE4-PAGES-HOME') { // Popup Form on Home Page
echo '
<link rel="stylesheet" href="https://www.montetrumbull.com/phplugins/css/custom.css">
<link href="https://fonts.googleapis.com/css?family=Marcellus" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Marcellus+SC" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://www.montetrumbull.com/phplugins/css/jquery.kyco.googleplusfeed2.css">
<script src="https://www.montetrumbull.com/resources/js/jquery.kyco.googleplusfeed2.min.js"></script>
<meta name="msvalidate.01" content="57C199CAA37B29A675E57F15450D64B1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./popup/colorbox/colorbox.css" />
<script src="./popup/common/libs_js/jquery-1.4.4.min.js"></script>
<script src="./popup/colorbox/jquery.colorbox.js"></script>
<script>
var $fb_pop = jQuery.noConflict();
$fb_pop(document).ready(function(){
setTimeout( function(){ $fb_pop.colorbox({href:"./popup/popup.html", iframe:true, innerWidth:"432px", height:"80%", maxHeight:"435px", fixed:true}) }, 25000 );
$fb_pop(".fb_iframe").colorbox({iframe:true, innerWidth:"432px", height:"80%", maxHeight:"435px", fixed:true });
});
</script>
';
return false;
}
else {
echo '
<link rel="stylesheet" href="https://www.montetrumbull.com/phplugins/css/custom.css">
<link href="https://fonts.googleapis.com/css?family=Marcellus" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Marcellus+SC" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://www.montetrumbull.com/phplugins/css/jquery.kyco.googleplusfeed2.css">
<script src="https://www.montetrumbull.com/resources/js/jquery.kyco.googleplusfeed2.min.js"></script>
<meta name="msvalidate.01" content="57C199CAA37B29A675E57F15450D64B1" />
';
return false;
}
return false;
} // END
I don't think it matters Rod. I pasted the same code into the ttg-head function I already had and it works. The issue is just getting it to load on the home page only.
Thanks!
Hi Rod. I have tried it with all combinations, from none to both. The existing code for the ttg_head function I am already using for all pages doesn't don't have any and that is what I started out with.
Thanks - Monte
I am trying to insert code into the head of just the home page. I can insert it just fine if I don't try to target a page, but otherwise it renders the site unavailable. Here is the code. I have tried adding and removing the return true and false statements.
// Popup Form on Home Page
function ttg_head_end( $style, $path ) {
if (G_STYLE == 'CE4-PAGES-HOME') {
echo '
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./popup/colorbox/colorbox.css" />
<script src="./popup/common/libs_js/jquery-1.4.4.min.js"></script>
<script src="./popup/colorbox/jquery.colorbox.js"></script>
<script>
var $fb_pop = jQuery.noConflict();
$fb_pop(document).ready(function(){
setTimeout( function(){ $fb_pop.colorbox({href:"./popup/popup.html", iframe:true, innerWidth:"432px", height:"80%", maxHeight:"435px", fixed:true}) }, 25000 );
$fb_pop(".fb_iframe").colorbox({iframe:true, innerWidth:"432px", height:"80%", maxHeight:"435px", fixed:true });
});
</script>
';
return false;
}
return true;
} // END
Any ideas?
Thanks - Monte
Hey Rod. I just checked and they are now working in Highslide and there are no errors in the inspector. I turned Cloudflare back on last night to cache my site, so I should have given it some more time!
Thanks - Monte
I decided to switch to the Highslide presentation and noticed the same errors are present.
Monte
Thanks Daniel! Using search worked great.
Thanks much Rod!
I finally got my website updated from CE3 to CE4 (just in time for Backlight!). I changed things up a bit this time with a dark theme and cleaned up the galleries structure by using search based links. I used Stage for most of extra pages working with the responsive framework. I am real happy with how it all turned out and it breaks down nicely on smaller devices. Many thanks to Rod and Matthew for the help along the way! You can check it out at: https://www.montetrumbull.com/.
Monte
Are tool tips supposed to work in Magnific galleries? Upon inspecting the page, I am seeing this error: TSRInitToolTip not exists. There is also this error: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
By the way, I am also seeing those errors on my blog page as well.
Any ideas?
Thanks - Monte
Wish I would have found WP/LR Sync before messing with NextGen. I wouldn't have wasted a day!
I deleted NextGEN and found a cool Lightroom publish service called WP/LR Sync. It uses a companion plugin for Wordpress that lets you see the published images in the Media Library. All is fine now. Thanks Rod!
Monte
Great idea Rod. I swear I had tried that, but must have forgot to check in between activating each one. Figures it was the NextGEN gallery plugin. It always seems to cause problems. I am using it so that I can insert images from a published folder not in the wp-content folder. Back to the drawing board! Thanks for the help Rod!
Monte
Interesting. i spoke incorrectly. My menu isn't created dynamically. Mine is coded in phplugins just like yours. Page source for yours and mine looks the same. I will keep digging...
Thanks - Monte
Hi Rod. I am doing the dynamic menus now using phplugins and it works fine everywhere else. A lot of the errors have to do with incorrect links in images from old posts, which I will be getting cleaned up, but some of the errors are on coding in what seems like TTG functions. How are other people handling drop-down menus in Wordpress?
Thanks - Monte
I have a site-wide drop-down menu implemented and it works fine except on the blog. If I view the page source, I can see that everything from my phplugins file is loaded. I also have a back-to-the-top button loaded that does not work. Any ideas?
Thanks - Monte
Thanks Rod, that worked perfectly.
Thanks for the ideas Daniel. I will look into that.
Monte
I realized that I was removing the block on all pages after posting that. I thought the following would target just the Search page which uses the template named "search".
// Search page //
function ttg_block_top( $style, $path ) {
if (G_TEMPLATE == 'search') {
echo '
BLOCK
';
return false;
}
} //END
Monte
I wasn't sure where to post this. I have created menu items that are shortcuts to a keyword search. I have a phplugin that removes the block on the search page so that the view looks like a standard gallery page. A couple of questions:
Would it be possible to create a dynamic title for the page based on the search term?
Would it be possible to still have a normal search show up with the block?
Here is a link: https://www.montetrumbull.com/. The galleries I am referring to are under Location, Season, and Aspect. Things are still under construction!
Thanks - Monte
I got it to work by moving the code down to the beginning of my navigation.
Thanks - Monte
Thanks for the ideas Rod and Matt. I will play with it tomorrow.
Monte