GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Link on Menu only on Homepage question (https://gfy.com/showthread.php?t=1252012)

ravenazrael 03-15-2017 10:44 AM

Link on Menu only on Homepage question
 
I want to add a link on my top menu, but I want it only on the Homepage, what should I add to the Title Attribute or where to make that possible?
site is boobsrealm.com

TitanWM 03-15-2017 05:24 PM

There are different ways to do this. You can do that with few lines php code. Need more infos about your site (is it coustom theme or do you use cms like wordpress).

If you use wordpress, you need 2 different menus. 1 specifically menu for your homepage with the link(s). Then you can define it in functions.php for each Page. It seems that you have no experience with php-coding? In that case I recommend you to use an existing plugin like:

https://de.wordpress.org/plugins/pag...ic-menu-items/

or

https://themify.me/conditional-menus

Search for plugins "different menus for each site"

ravenazrael 03-15-2017 08:10 PM

thank you very much. yeah I suck at coding

Zeiss 03-15-2017 08:26 PM

A good recommendation here! Thanks, TitanWM!

EN1GMA 03-16-2017 09:23 AM

Hey ravenazrael, long time we don't talk. We did business in the past.
There is a easy way to do this. Let me try to help you.

Install this plugin: Menu Item Visibility Control
Now go to your menu, and add this to "Visibility" field in the link that you want to show in your homepage only:

Code:

is_home()
And you're done! Let me know if worked for you :2 cents::thumbsup


All times are GMT -7. The time now is 06:13 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc