Home › Forums › Weaver Xtreme Theme › Horizontal Menu (under the header) Shifts to the Right and Then Back
- This topic has 56 replies, 2 voices, and was last updated 10 months ago by
miamax.
-
AuthorPosts
-
February 4, 2023 at 20:12 UTC - Views: 56 #71682
scrambler
ModeratorMay be there is something wrong with my Edge….
You have two errors in your custom CSS breaking the file
1- You are missing a closing } on the rule below
#content .page {background-color:#ffffff; padding:5px;
should be
#content .page {background-color:#ffffff; padding:5px;}
2- There is a line of PHP code in the middle of it that should be removed
.add_filter( ‘jetpack_enable_opengraph’, ‘__return_false’, 99 );
After that, the CSS should work
February 4, 2023 at 20:17 UTC - Views: 53 #71683scrambler
ModeratorActually the last one needs !important
.wvrx-menu .sub-menu a {padding-left: 2em !important;}
February 4, 2023 at 21:19 UTC - Views: 53 #71684miamax
ParticipantOkay, I made those changes.
I deleted the plugin “Simple Custom CSS and JS,” but before I did, I saw that I had this code there. Is this something I need to add to Global Custom or can I ignore it?
.widget_nav_menu li {padding-top: 4px;}
#nav-above {display:none;}
#nav-below {display:none;}
.nav-next {display:none;}
.nav-previous {display:none;}remove_filter( ‘authenticate’,
‘wp_authenticate_email_password’, 20 );function no_wordpress_errors(){
return ‘Something is wrong!’;
}
add_filter( ‘login_errors’, ‘no_wordpress_errors’ );February 4, 2023 at 21:27 UTC - Views: 45 #71685miamax
ParticipantI think I do need that code because now there is a border around the content area. Do you see that?
February 4, 2023 at 21:35 UTC - Views: 45 #71686miamax
ParticipantAnd I do want to hide newer and older posts navigation at the top and bottom of each page.
February 4, 2023 at 21:38 UTC - Views: 52 #71687scrambler
Moderator.widget_nav_menu li {padding-top: 4px;}
You can keep if you need the spacing
————————————————————————————————————-
#nav-above {display:none;}
#nav-below {display:none;}
.nav-next {display:none;}
.nav-previous {display:none;}You dont as there are theme options to hide post navigation the proper way.
Review the “post specifics” options in the Customizer in “where” mode
————————————————————————————————————–
remove_filter( ‘authenticate’,
‘wp_authenticate_email_password’, 20 );function no_wordpress_errors(){
return ‘Something is wrong!’;
}
add_filter( ‘login_errors’, ‘no_wordpress_errors’ );Is PHP code and has nothing to do in a CSS location…
If you know what that code does and you actually need it, you may be able to use the Theme “Actions and filter” box to put it in (in Xtreme Admin Advanced options).
BUT bad PHP code can break your site and you are on your own with it….
February 4, 2023 at 21:49 UTC - Views: 35 #71690miamax
ParticipantAll the boxes to “hide” were already checked and I still see the navigation to newer and older posts.
February 4, 2023 at 22:10 UTC - Views: 32 #71691scrambler
ModeratorDo you have the Plus plugin?
If so there are options to hide the top and bottom links on both blog pages and single post pages
If you do not have the Plus Plugin, then you can use the CSS to hide them
February 4, 2023 at 22:24 UTC - Views: 30 #71692miamax
ParticipantOkay, that code works to hide the navigation.
I have this code in Post Specifics -> Post Area (CSS Rules) but it no longer seems to be hiding the border around the post:
{border:none;padding: 0;}
February 4, 2023 at 22:29 UTC - Views: 25 #71693scrambler
ModeratorGive me a link to the page with the bordered post as I cant find one
And the border around post is a theme option that can be deactivated with the corresponding check box
February 4, 2023 at 22:31 UTC - Views: 21 #71694miamax
ParticipantFebruary 4, 2023 at 22:35 UTC - Views: 19 #71695scrambler
ModeratorI don’t see any border there.
February 4, 2023 at 22:36 UTC - Views: 18 #71696miamax
ParticipantWhere is the border around a post turned off? I only see boxes to check to turn it on.
February 4, 2023 at 22:37 UTC - Views: 15 #71697scrambler
ModeratorThere is a check box to turn it on, if not checked, it is off, unless it has been manually added with a Custom CSS rule.
BUT, I see no border around the post in the page you gave me…..
Clear ALL your caches
February 4, 2023 at 22:39 UTC - Views: 13 #71698miamax
ParticipantMaybe it’s a quirk in Firefox.
Everything seems to be okay now, yes? Is my site okay or is it broken?
February 4, 2023 at 22:43 UTC - Views: 14 #71699scrambler
ModeratorI do not see a border in Firefox or Chrome
The site is still broken on Edge on my desktop (showing phone view), BUT is working on Edge on my laptop
So not sure what to make of that as I cleared all cookies on my desktop to be sure…
-
AuthorPosts
- You must be logged in to reply to this topic.