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.
Pages: 1
I am trying to use the custom footer scripts from Rod's TTG Tips & Tricks. The code I inserted into the backlight.php file is below (I included lines above and below my insertion). When I run it, I get the following error
Something went wrong
Unexpected error: syntax error, unexpected '<', expecting end of file in backlight.php on line 268
Please report error at http://community.theturninggate.net
Notepad++ does not seem to indicate any issues.
What am I missing here?
-Herschel
function ttg_pallet_top_title( $style, $path ) {
echo '
<li class="logo"><a href="#"><ul class="logo_backlight">
<li style="opacity:.85; top:75%; left:75%;"></li>
<li style="opacity:.40; top:75%; left:50%;"></li>
....
<li style="opacity:.85; top: 0%; left:50%;"></li>
<li style="opacity:.98; top: 0%; left: 0%; width: 50%; height: 50%"></li>
</ul><h1><strong>B</strong>acklight</h1></a></li>
';
return false;
} // END /**/
//----------------------------------------------------------------------------------------------
//Footer replacement
<div class="grid_12" id= "footer"> THIS IS LINE 268
<div class= "col_8">
<p>All content ©2015-' . date("Y") . ' HJR Weintraub, all rights reserved.
</br>Powered by <a href="http://theturninggate.net">The Turning Gate</a>
</div>
<div class="social-media-profiles social-media col_4">
<ul>
/*<li><a target="_blank" href="http://www.yoursite.com/blog/rss/" class="social_media fa fa-rss"></a></li>*/
/*<li><a target="_blank" href="https://www.instagram.com/your-profile/" class="social_media fa fa-instagram"></a></li>*/
<li><a target="_blank" href="https://www.facebook.com/Photographs-Now-152616671487325/" class="social_media fa fa-facebook"></a></li>
/*<li><a target="_blank" href="https://twitter.com/your-profile" class="social_media fa fa-twitter"></a></li>*/
</ul>
</div> <!-- #social-media-profiles -->
</div>
// ****************************************************************************************************
// END USER FUNCTIONS
?>
Offline
do you have the hook function before the first <div>?
http://ttg-tips-and-tricks.barbeephoto. … -pangolin/
function ttg_footer_top( $style, $path) {
echo '
and after the last </div>
';
return false;
}
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod
That did it.... now on to tweaking it
-Herschel
Offline
Is there a way to get a border at the top of the custom footer? The border command remains in the Footer options even with the Bottom Pallet / Copyright turned off, but doesn't do anything. There does not seem to be a bottom border in Content Areas.
Also, where do I modify the size of the social media icons?
Thanks
-Herschel
Offline
for the social media icons, just add the code for a larger icon
https://fontawesome.com/v4.7.0/examples/
use custom css for the footer border
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Pages: 1