Change header look
-
I have a bootstrap header that looks great and I need it in this theme how can i do it.
image of header
so they can still upload an image but then this shadow has to go over it:#page-sub-header{ position: relative; padding-top: 5rem; padding-bottom: 0; text-align: center; font-size: 1.25rem; background-size: cover !important; box-shadow: inset 0 0 0 1000px rgba(35, 220, 160, 0.6); }
for the dynamic element i have used this:
https://codepen.io/LeonGr/pen/yginI
but i changed the following in js
(page-sub-header) is the header i want it to go overcanvas.width = document.getElementById('page-sub-header').clientWidth; canvas.height = document.getElementById('page-sub-header').clientHeight;
and i changed the css
#canvas{ position:absolute; top:0px; left:0px; }
i can’t get this to work. i see an obvious diffrence; i do the following for the header image.
<div id="page-sub-header" <?php if(has_header_image()) { ?>style="background-image: url('<?php header_image(); ?>');" <?php } ?>>
what i think i need to do is get that uploaded image to the background and the background just as big as it needs to be for logo and uploaded text. Could you guys give me a helping hand?
EDIT: i can change the height of the header with:
great post that helped me its not as dynamic as i want but okay- This topic was modified 2 years, 3 months ago by . Reason: grammar
- This topic was modified 2 years, 3 months ago by . Reason: EDIT 1: Header size
The page I need help with: [log in to see the link]
- The topic ‘Change header look’ is closed to new replies.