Add a link on top header that only shows on Homepage not in all pages

Posted in: Newsmag
Post count: 4

Hello guys, can you help me please. I need to add a single link on the top header of my site that only shows in the homepage not in all the pages. Can you help me please?

Thanks

Post count: 23312

Hello LaJornada,

If you want to add a simple link which only works on your homepage you simply try to add it from the panel, Menus section, Custom Link like this -> https://www.screencast.com/t/lDAiyUdPi and then, using a bit of CSS code you should hide it for the entire theme and block it only for homepage. Below, I gave you an example.

The code is ->

.menu-item-451{
display:none;
}
.home .menu-item-451{
display:block!important;
}

The result is here -> https://www.screencast.com/t/uiXM29cvFaB

Thanks for your understanding!

Post count: 4

Thanks for your reply,
But can you explain me please how I add it step by step.
Sorry but I could not do it.

Greetings

Post count: 23312

Hello LaJornada,

You should simply add your custom link in your top bar menu from WordPress, Menus section and then, using the Inspector browser you should find the class for your custom link item to hide it for the entire theme and block it only for your homepage. For more information about Inspector browser, please check the useful documentation here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/ Unfortunately, I cannot do this for you, sorry! I will only provide you an example and a hint from where you should do it yourself based my explain. So, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for your understanding!

Post count: 4

Thanks, is now resolved.

Greetings

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newsmag’ is closed to new topics and replies.