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
Hello,
I want to add an extra page on my navigation-menu.
No I have changed something in the phpplugins.php.
And the link works, but my masthead and so on is gone.
What do I do wrong?
http://test.fotostudio-darkbremen.de
Changes in phphplugins:
// SITE-WIDE "TRADITIONAL" NAVIGATION MENU
// This function establishes a site-wide navigation menu using pseudo-absolute URLs (beginning "/")
// -- portable, domain agnostic, and without the location limitations of relative URLs.
// Serves as an example of a function being applied globally
function ttg_header_navigation( $style, $path ) {
echo '
<div id="navigation-container" class="navigation-container clearfix">
<div id="navigation" class="block-id navigation clearfix">
<div class="mantle clearfix">
<div class="core clearfix">
<div id="navigation-background">
<div id="r2d2-menu" class="clearfix">
<ul id="pull">
<li><span> </span></li>
<li><span> </span></li>
<li><span> </span></li>
<li><span> </span></li>
<li id="open-nav" class="toggle-nav"><a href="#r2d2-menu"><i class="fa fa-reorder"></i></a></li>
<li id="close-nav" class="toggle-nav"><a href="#"><i class="fa fa-remove"></i></a></li>
</ul>
<p id="nav" class="clearfix">
<!-- EDIT ONLY BELOW THIS LINE : -->
<span><a href="/">Home</a></span>
<span><a href="/about.php">Über mich</a></span>
<span><a href="/galleries.php">Gallerien</a></span>
<span><a href="/services.php">Preise</a></span>
<span><a href="/services-2.php">Preise 2</a></span>
<span><a href="/contact.php">Kontact</a></span>
<span><a href="/info.php">Impressum</a></span>
<!-- EDIT ONLY ABOVE THIS LINE -->
</p>
</div><!-- #r2d2-menu -->
</div><!-- #navigation-background -->
</div>
</div>
</div> <!-- #navigation -->
</div> <!-- #navigation-container -->
';
return false; // Replaces normal menu
} // END
Offline
How do you have the masthead configured in Lightroom?
If you're using the Integrated option that places the masthead in the navigation, that might explain what's going on
http://ce4.theturninggate.net/docs/doku … integrated
If that's the case you'll need to add the html for the mastheads. The way you can do that is to first disable phplugins and then look at the source code of the page in the browser. You'll then need to copy the part of the code containing the masthead and navigation and use that instead of what comes with phplugins.
Although not the exact same thing, the concept here might help you figure out what to do (if indeed you are integrating the navigation and the masthead)
http://ttg-tips-and-tricks.barbeephoto. … avigation/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod,
yes, I use the integrated Masthead.
And it worked
Thanks
Last edited by wouterg (2015-11-27 06:15:55)
Offline
great!
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