stefanopoma97
Forum Replies Created
-
I have the same problem. How can I disable only the carousel module in Jetpack?
Forum: Themes and Templates
In reply to: [OceanWP] Custom header in search pageOK, I solved it.
Here is the solution.The default color of the hamburger icon is set in Header/Mobile Menu/Custom Hamburger Button: Color
The color will then be used throughout the site.
To change it in a specific page you have to retrieve the page id: just check in the <body> of the page from a browser, you will find something like “.page-id-854”.
To change the color now you have to go to: Custom Css/Js and write:
.page-id-854 .mobile-menu .hamburger-inner,.page-id-854 .mobile-menu .hamburger-inner::before,.page-id-854 .mobile-menu .hamburger-inner::after {
background-color: #ffffff !important;
}Without “!important” it doesn’t work
It doesn’t work even if you put it in style.css of child themeTranslated with https://www.DeepL.com/Translator (free version)
Forum: Themes and Templates
In reply to: [OceanWP] Custom header in search pageBasically I should figure out how to change the color of the icon in CSS.
Once I find id or class of the icon I can try to apply the new color only on the home page.The body of the homepage has a unique id then:
.page-id-854 .hamburger_icon_id {
color:’white’}
(something like this)until now i couldn’t find the id of this icon and the way to change its color.
It would be ok to put a background color and keep the icon color unchanged (alternative solution)
Forum: Themes and Templates
In reply to: [OceanWP] Custom header in search page`Hello,
Kindly share the website URL where you facing the issue.
Following the doc may help you with it.
https://docs.oceanwp.org/article/375-altering-header-style-by-page``hi.
I have solved almost completelythe text is now black and only in the home page I make it white.
But I can not in any way change the color of the Hamburger icon.Following the documentation: https://docs.oceanwp.org/article/224-alter-the-bars-icon-in-the-mobile-menu-link
function my_mobile_menu_open_button_icon( $return ) {
if ( is_page(‘home2’) ) {
return ‘<i class=”fa fa-bars” style=”color:white”></i>’;
}
else{
return ‘<i class=”fa fa-bars”></i>’;
}}
add_filter( ‘ocean_mobile_menu_navbar_open_icon’, ‘my_mobile_menu_open_button_icon’ );this way I should change the icon color only if I’m in the ‘home2’ page. Unfortunately, nothing happens.
the site is not online yet