VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
How To Create A Sticky Header In WordPress - Website Learners

How To Create A Sticky Header In WordPress - Website Learners

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
How To Create A Sticky Header In WordPress 0:41 Install MyStickyMenu Plugin 1:35 Make the Header Sticky 2:26 Change the color of the header section 3:43 Make the header sticky for any theme Step 1 : Install MyStickyMenu Plugin Go to WordPress Dashboard Plugins Add New Now search for MyStickyMenu and click Install & Activate. Step 2 : Make the Header Sticky Go to WordPress Dashboard myStickymenu Sticky menu settings Now select Primary Menu in Sticky class & click Save. Next, lets see how you can change the color of the header section. Go to WordPress Dashboard myStickymenu Sticky menu settings Now, from Sticky Background Color, choose the color & click Save. For some themes on your website, the plugin couldnt find the header. So to make the header sticky for those themes, Go to WordPress Dashboard myStickymenu Sticky menu settings Now in Sticky Class select Other Class or ID Now you need to enter the ID or class of the header. So to get that, go to your website Now right-click on the header and click Inspect. And you will find the ID and Class of your header. Now just copy one of those and paste it in the sticky class field. Make sure you enter # if youre entering ID and . (dot) if youre entering class. Once youve entered ID or Class, click Save. This is how you can create a sticky header in WordPress website
Date: 2022-04-28

Comments and reviews: 6


Hii, thanks for the amazin tutorial.... but how abt with CSS script.
im trying on the other hand to have a transparent nav header and when scrolling the background changes to black...
i used the following script. but it just makes the background black the whole time.. when its fixed and when its scrolling.
is there soemthing that im missing?
would be thrilled if someone assists.
Thanks
.main-header-bar
position: fixed;
top: 0px;
padding: 5px 0;
width: 100%;
height: 90px;
background-color: transparent;
transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
z-index:1000 !important;

.main-header-bar
position: scroll;
top: 0;
left: 0;
width: 100%;
z-index: 999 !important; transition: all 0.4s ease-in-out;
background-color:rgba(0, 0, 0,.8) !important;

reply

usually I love your videos, but this time neither option worked for me I'm afraid!! .................... I stand corrected!!!! How could I doubt you, I simply didn't add the correct id into the 'other class or id!! Thank you so much again, sorry for doubting!!
reply

Hi, if the above procedure does not work for you then instead of primary header menu, select Other Class or ID and in the field next to it add this #masthead and then adjust the opacity, background colour and save.
reply

Even after changing the background colour, it is not showing the changes. I did save it. It only works when i go to html and edit the background colour and make the changes in Additional CSS settings.
reply

I use this plugin with bistro food theme it's working with desktop but not on mobile .. I am much woory pls help me to solve this prob I am big fan of your videos
reply

thanks for the explaining clearly. after click the menu that section/content is going behind the sticky menu. please help
reply
Add a review, comment






Other channel videos