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.
I need assistance for following issue:
In pages plugin as well in all other used plugins and corresponding templates (for galleries and autoindex) I have enabled PHPlugin, custom css and the share resources function in the output module.
Following example:
I want to kick off one of my navigation hyperlinks I have specified in the site information module. I want to have one less menu in website navigation bar.
I did corresponding changes in Pages and uploaded them.
Home and galleries site are OK because they use the new settings directly from pages
I all other cases where either other templates or other auto indexes are used the new settings are NOT reflected.
Can anybody please can me an instruction how to go on? Perhaps Rod would be the best to give precise advice. ;-)
Thanks in advance
Offline
If you've already enabled PHPlugins, then your best option is probably to write a menu replacement function.
Some example menu functions can be found here:
http://ce4.theturninggate.net/docs/doku … navigation
I think Rod may also have a more thorough explanation on this ttg-tips site.
Offline
Yep. If you're not already managing your navigation with phplugins:
http://ttg-tips-and-tricks.barbeephoto. … phplugins/
If you are, then simply edit the nav menu in your phplugins file, removing the link.
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 for your support !
Works fine, super easy.
Last questions related to that topic:
How do I have to modify in the php file the expression"<span><a href="/contact.php">Contact</a></span>" in case that I want to:
- target an external link
- open the link in a new window
How could I integrate a further icon (and corresponding link) for an additional social media profile?
It should be in addition to the already specified ones from the social media profiles in the site information module
Offline
targeting an external link is covered in the ttg-tips post: http://ttg-tips-and-tricks.barbeephoto. … phplugins/
To make it open in a new window, just add target="_blank" to the url. For example:
<a href="http://www.othersite.com" target="_blank">Visit this site</a>
A lot more here: http://www.w3schools.com/html/html_links.asp
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Sorry, you already gave the information in your previous link ;-(
As far as the modification of the social media profiles is concerned I'm not ready to go.
Is there a possibility to do these changes in the same easy manner as the navigation with phplugins?
In case of only updating the link for an already existing social media profile (part of pages upload):
Does also exist the possibility to pass this information over to all other sites. Location to make this centrally modification?
Last edited by dvdfan001 (2015-12-23 02:49:11)
Offline
That's because what you asked is covered in that link.
Plus I've added an example above.
to make it clearer:
<span><a href="http://othersite.com" target="_blank">Other Site</a></span>
It's just as easy to change/add social media profiles using phplugins as it is navigation.
Export and upload a page. Look at the source code and copy the social profiles section.
Modify as needed.
Use the proper hook in phplugins to replace the old social sharing with the new one. Matt has already provided the hook of that: http://ce4.theturninggate.net/docs/doku … cial_media
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I have successfully changed the links of existing social media profiles.
Hook respectively function ttg_social_media ......... has been the key ;-)
One topic I did not solve, sorry for a perhaps stupid question from your point of view (I'm not quite familiar with html and css stuff)
For example: for youtube I have to use: i class="fa fa-youtube"
If I want to link to another "Service": How to go on in case that I want to use a Logo for which such an expression does not exist?
Offline
that's the wrong syntax for font awesome
To insert a font-awesome icon, use this syntax:
<i class="fa fa-youtube"></i>
If I want to link to another "Service": How to go on in case that I want to use a Logo for which such an expression does not exist?
If Font Awesome doesn't have the logo for what you want, then it's going to get a little complicated.
If you can find that logo with another web-font service you'll most likely need to add a link to their service using the ttg_head_end hook (after your custom css) and then use their syntax to insert the icon where needed, just like you do with Font Awesome.
If there are no web icon services with the logo, then you're just going to have to find an image, size it appropriately, and add it with html.
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
I know that this is not a html / css support site - therefore my last question in this context.
Social media profile updates are now in place.
But I recognized that the position of this block has changed.
Please see my screenshot:
Seems like a reposition of the complete social media block or the ul block is necessary.
Do you have a tip for me?
Last edited by dvdfan001 (2015-12-23 19:33:23)
Offline
Looks like a CSS class could be missing from the HTML markup, one that contains a rule for margin-left perhaps?
Hard to tell without seeing the page though
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
After deletion of:
<div class="mantle clearfix">
<div class="core clear fix">
everything is fine ;-)
Offline
I believe you only need to grab the section that starts with:
<div class="social-media-profiles social-media clearfix">
and ends with:
</div> <!-- #social-media-profiles -->
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Yes, that is what I have been done, works fine.
Offline