Home › Forums › Weaver Xtreme Theme › Hiding navigation links on a single post
- This topic has 6 replies, 2 voices, and was last updated 1 month ago by
gbcc_Gha.
-
AuthorPosts
-
December 14, 2020 at 11:21 UTC - Views: 44 #66447
Hello!
I gather, using “Single Page Navigation Style” I can hide all Top and Button Links in single posts. How do I hide the top/button navigation links on a specific single post only?
Cheers,
December 14, 2020 at 16:28 UTC - Views: 32 #66450scrambler
ModeratorPlease give us the link to that specific post page and we can give you the CSS too do that
December 21, 2020 at 13:06 UTC - Views: 27 #66477gbcc_Gha
ParticipantSorry for the late reply. For whatever reason, I just got the email notification re follow-up reply!
I use the plugin Download ManagerĀ (https://www.wpdownloadmanager.com/) to make sure that only subscribers of an online course have access to the documents attached to that course. Unfortunately, every single document page is designed as a single post page, i.e. it has a link to all other previous document pages. This is an example: https://www.gbcc.eu/download/lektuere-rollenkonflikt-und-rollenunklarheit/ Does that help?
Till I have a better solution, currently I hide all Top and Button Links in all single posts and with this the links on the single document pages as well.
December 21, 2020 at 17:26 UTC - Views: 14 #66478scrambler
ModeratorYou can add the rule below to the theme Global Custom CSS Rule box.
By changing the post ID# you can affect any single post page.single.postid-11972 #nav-above, .single.postid-11972 #nav-below {display:none;}
December 21, 2020 at 17:53 UTC - Views: 11 #66479gbcc_Gha
ParticipantThank you! Is it possible to do it at a single blow for all pages following “gbcc.eu/download/” as this seems to be the basic structure of the documents’ plugin?
December 21, 2020 at 18:38 UTC - Views: 11 #66480This reply has been accepted as the best answer.
CSS has no way to know the folder structure.
If you have the Xtreme Plus plugin, you can add a class to all the targeted posts that will show up on the page body tag and would allow us to target them with CSS
The option is found in The Post Editing page > Xtreme options for this post > Xtreme Plus > Per Post body Class BoxIf you put a class name like mypost in this box for all the targeted posts, then you could change the CSS rule I gave you to
.single.mypost #nav-above, .single.mypost #nav-below {display:none;}December 21, 2020 at 19:08 UTC - Views: 4 #66481gbcc_Gha
ParticipantMuch appreciated. Cheers,
-
AuthorPosts
- You must be logged in to reply to this topic.