wversluys
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsYeh I was afraid of that, i’m gonna give it a go with the page referrer. Thanks alot for your help!
Forum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsThanks for the suggestion, i’ll look into it!
Also just thought of another way, using the $_SESSION variable to store the last known parent, although this wouldn’t work if people disabled cookies right?
I’ll give them both a try and will come back if one of these fixed it or not ??
Thanks for the replies so far Esmi!
Forum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsWhen coming from one of the men pages, yes. When coming from one of the women pages the ‘women’ tab should stay active.
Forum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsThe tabs in the top-left corner is basicly the main navigation, the navigation bar under the logo will be the sub-navigation of the selected tab.
I want the pages that don’t have a parent to keep the last parent active (so keeping the last selected tab active).
Forum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsHere is a link to a sample website (same template as the website im working on)
LinkForum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsThe menu’s I am using are all custom menu’s, the parent and ancestor classes are working as intended. What doesn’t work is: keeping the last parent tab selected if the current page does not have a parent.
Is there a way to save the last parent as a global variable? Tried to declare a global variable in functions.php but I couldn’t access it later on (tried it in header.php).
Forum: Fixing WordPress
In reply to: Assign a page/post to multiple parentsHi Esmi,
Thanks for the quick response!
I already used CSS to modify the tabs (.current-page-ancestor and .current-page-parent).
The problem is, without assigning a parent to some pages I won’t be able to keep a menu item highlighted. And it’s not possible to assign multiple parents to a page/post (as far as I know). I’ll update my question with some screens to visualize my problem.