Home › Forums › Weaver Xtreme Theme › Help with link malfunction
- This topic has 17 replies, 2 voices, and was last updated 10 years, 11 months ago by
Christen.
-
AuthorPosts
-
September 20, 2015 at 19:56 UTC #18280
Christen
ParticipantI am working here: https://www.essence-vyt.com/
This client wants her navigation in the left sidebar and in the footer. Since the custom menus were not to her design liking, I built simple links in the sidebar widget and used HTML in the footer to get the effects you see. I began adding her content yesterday which is when I noticed that both the sidebar and footer links to the testimonial page load the home page. I used Firebug to look at it, but was clueless as to what I was looking at.Can you help solve?Many thanks, ChristenSeptember 20, 2015 at 20:14 UTC - Views: 1 #24627scrambler
ModeratorIt does not look like the links are the problems, but that the permalink of your testimonial page points to the home pagehttps://www.essence-vyt.com/testimonials/
Displays the same as
So the first thing I would do is go to Settings > Permalinks, and click SAVE again to resave the permalink and see if that fixes it. If you are using a cache plugin, make sure to also clear the cache
September 20, 2015 at 20:41 UTC #24628Christen
ParticipantThanks Scrambler! That fixed it!
September 20, 2015 at 22:11 UTC - Views: 1 #24629scrambler
ModeratorBy the way, in the future, instead of redoing menus manually, you can use the regular menus and widgets, and style them to your convenience using custom CSS.If you have “Plus” you can use extra menus and widget that use the stylings available in the admin (plus eventually custom CSS).For the WordPress Sidebar Custom menu widget, you have some pointers on the custom CSS here.September 20, 2015 at 22:27 UTC #24630Christen
ParticipantThanks Scrambler, I will review these functions in Plus, which I have not needed before now.
September 21, 2015 at 03:51 UTC - Views: 14 #24631Christen
ParticipantOkay, I played with the custom menu widget as well as the X-Plus menu widget.
You can see what I ended up with here https://www.essence-vyt.com/This is the X-Plus Menu Widget using the Vertical-Accordion + Extra Menus stylingSome combinations rendered NO menu at all!I would really like to eliminate the horizontal lines between the menu items, and to have each menu item aligned to the right, instead of to the left. I cannot figure out how to accomplish either.Every menu option for alignment is set to the right, and I tried making the separator bar color the same as the BG color to see if I could “disappear” it that way, but to no avail…Can it be done?Also, for Smart Menus, does this require the Smart Menus Plugin to be installed?September 21, 2015 at 04:08 UTC #24632scrambler
ModeratorTo remove the separating border and align the menu items right, add the rule below in Main Options > Fonts & Custom > Custom CSS Rule box.is-mobile-menu.menu-arrows a {border:none;text-align:right;}For Smart menu, just check the option at the top of the main options > Menus pageSeptember 21, 2015 at 04:53 UTC - Views: 1 #24633Christen
ParticipantOkay, that worked when I put the rule in the x-Plus Extra Menu css box…
on the home page, the Title “Locations” has disappeared from the Title BG in the secondary/right sidebar, just under my client’s photo. I cannot figure out how that just happened!Can you help?September 21, 2015 at 05:07 UTC #24634Christen
ParticipantThis might need a new thread – some of my sidebar content suddenly thinks its a hyper link…
September 21, 2015 at 05:16 UTC - Views: 2 #24635scrambler
Moderator1- I am not sure what you are calling “the x-Plus Extra Menu css box…”Rule normally go in Main Options > Fonts & Custom > Custom CSS Rule box2- Dont understand what you mean by “the Title “Locations” has disappeared from the Title BG ” I see “class Location” in the sidebar3- If all your sidebar is becoming a link you probably have some HTML syntax error in your content with a missing closing tag…September 21, 2015 at 05:29 UTC - Views: 2 #24636Christen
ParticipantOoops, I missed the “Fonts & Custom piece and stayed in the Menus tabMy logic: because I am using the X-Plus Menu widget with the settings with the Vertical-Accordion + Extra Menus Style, I had to put your rule in the Main Options > Menus > EXTRA MENU > Custom CSS Rule box
It worked.And, you were right, I had a syntax error that I found and fixed – I’m all goodand, I really appreciate your assist!many thanksSeptember 21, 2015 at 16:28 UTC #24637scrambler
ModeratorYou would have to be more specific because there is no Main Options > Menus > EXTRA MENU > Custom CSS Rule box
There are some CSS+ boxes on various options if you meant one of them you would need to clarify which one.
The menu bar BG CSS+ box probably would work for the rule I gave you
September 21, 2015 at 16:57 UTC #24638Christen
ParticipantActually there is…
Main Options > Menus >Extra Menu (X Plus) and it IS the Menu Bar BG CSS styling box.Just because it works in this location does not necessarily make it the best place to insert the rule, I suspect based on your replies.So if there is an optimal placement for this rule let me know and I will move it.Thanks for sticking with this with me – I appreciate it!September 21, 2015 at 17:17 UTC #24639scrambler
ModeratorWhen you place CSS in an option CSS+ box, the theme will generate a rule that will have the selector corresponding to the Option, followed by the CSS you put in the box.
If the CSS you place in the CSS+ box already has a selector, you need to make sure that this selector comes after the one being added by the theme for that specific CSS+ box or else the rule would be invalid. (you can inspect your page with your browser developer tool to verify that)
For that rule, that CSS+ box it a valid choice as in the page, the selector generated by the box comes before the selectors that are in my rule.
September 21, 2015 at 17:41 UTC #24640Christen
ParticipantWhat do you mean by “selector” ?
September 21, 2015 at 17:54 UTC - Views: 3 #24641scrambler
ModeratorA CSS rule is composed of two parts, the Selector(s) that define which objects the rule applies to, and the property rules (inside curly brackets)that define what style(s) should be applied to the selected objetcs.
In my rule
.is-mobile-menu.menu-arrows a {border:none;text-align:right;}
.is-mobile-menu.menu-arrows a are the selectors.
It says to apply the property ({…}) to the a tags (link items) that are under an object with both the classes is-mobile-menu and menu-arrows. (classes are attached with no space so it means they are on the same object)
{border:none;text-align:right;} are the properties that need to be applied to the selected objects
When you place that rule in Main Options > Menus >Extra Menu > menu Bar BG CSS+ box
The rule generated will be
.menu-extra .wvrx-menu-container .is-mobile-menu.menu-arrows a {border:none;text-align:right;}
The Theme adds the selectors for the extra menu bar BG which is .menu-extra .wvrx-menu-container
If you inspect the page, you will see that the structure of the extra menu HTML on mobile is
<div class=”menu-extra…..”
<div class=”wvrx-menu-container…..”
<ul class=”menu-arrows is-mobile-menu …..”
<li….
<a….. (the link menu item we want to style)So the resulting selector ( .menu-extra .wvrx-menu-container .is-mobile-menu.menu-arrows a ) is valid as it correspond to the HTML hierarchy
-
AuthorPosts
- You must be logged in to reply to this topic.

