Tagged: Vinay
-
AuthorPosts
-
February 18, 2017 at 11:10 am #748812
Hi,
we need to add some additional elements in the header area.
We followed this instructions:
http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/ ( layout with the menu below the header area).
If we put this code into our functions.php it has negative influence on our layout.
Please look here:
1: Without the code
https://drive.google.com/open?id=0BzF3a9LXV99JdVBOTmQ4SHV4eGc (This is correct and how it should looks like)
2: With your code
https://drive.google.com/open?id=0BzF3a9LXV99JLTR3RFNyYzRuRnM
Here you can see that you code makes the slider vanishes in parts behind the header-element.
This seems to be a bug.
Can you please help?Regards Martin
February 18, 2017 at 8:02 pm #748881Hey digitalprint2222!
That is not actual a bug, but it does require some further customization to make it work properly ( with some custom CSS as it seems based on your needs ).
The best case scenario is to hire a freelancer to help you with your process.
Let us know if we can do anything else for you.
Cheers!
BasilisFebruary 19, 2017 at 12:21 pm #748989Hi Basil
Mister Budschedl aka Kriesi told us personally on Themeforest this:
“Hey Martin!1.) the Customization wouldn’t be too hard I guess, since all you need to do is to inject a html button into the header which can be done via one of the WordPress Hooks in file includes/herlper-main-menu.php. All you need to do then is to style the button to your likings and position it properly. This is something we can definitley help with once we know which header and layout setting you are going for ;)”
Ok, so here we go:
This is what we are going to achieve:
https://drive.google.com/open?id=0BzF3a9LXV99JQTNqcUpCckhLY00The Layout we have choosen is this:
https://drive.google.com/open?id=0BzF3a9LXV99JOGwwX1J6TG9KdzAThanx for supporting
Regards MartinFebruary 19, 2017 at 2:40 pm #748996I forgot to mention the URL:
I am already quite far but here some specific questions:
1: How can i reduce the distance between the upper browserwindow edge and the logo?
2: How can i make the logo bigger? (if i use the “custom pixel value setting” for the header it influences the whole header but i just want to make the logo takes more space)
3: Something is wrong with the CSS cause it does not adapt properly if i minimize the browser window.Thanx Martin
February 24, 2017 at 5:32 am #751244Hey!
1.) What are the css modifications that you added in the theme? Did you set the height of the header?
2.) Add this css code in the Quick CSS field.
.logo img { width: 340px; height: 156px !important; max-height: 156px !important; top: -50px; }
You might need to adjust the height of the header.
3.) Which css or what elements are not adapting to the screen? Please provide a screenshot of the expected header layout on mobile view.
Best regards,
IsmaelMarch 3, 2017 at 3:41 pm #755126Hallo Ismael
i added your CSS but had to change the value from 156px to 150px – otherwise the logo was chopped of a bit on the bottom.This shows how the additional elements should be positioned in mobile devices.
Just right beside the logo
https://drive.google.com/open?id=0BzF3a9LXV99JOWxtdTFhS3dsVlEThe settings we have is:
Stretched layout by 1310px
Logo left / Menu below
Breadcrumb & Title = NO
Header-Size= Big
No Extra-ElementsThis is what we already have in our CSS regarding the header
#header #header_main_alternate .container { padding: 0px !important; }
#header_main_alternate{ display:block !important; }
The last one is to solve the “residiual styling” problem for Ubermenu from SevenSparks
Then we have this but it should only affect the <divs> we have added already.
I am not sure if its correct..addheader { float: right; width: 45%; color: #222 !important; text-transform:uppercase; } .addheader a { color:#ccc !important; text-transform:uppercase; font-size: 100%; } .addheader1 { background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/schloss.png") no-repeat scroll 0 0; border: 1px solid #ccc; float: left; min-height: 51px; padding: 0 12px 0 0; text-align: right; width: 24% !important; } .addheader2{ background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/anfrage.png") no-repeat scroll 0 0; border: 1px solid #ccc; float: left; min-height: 51px; padding: 0 12px 0 0; text-align: right; width: 24% !important;} .addheader3{ background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/rueckruf.png") no-repeat scroll 0 0; border: 1px solid #ccc; float: left; min-height: 51px; padding: 0 12px 0 0; text-align: right; width: 24% !important;} .widget.clearfix.widget_text { position: relative; top: 117px; right: 65px; }
Kind Regards martin
March 6, 2017 at 6:42 am #756175Hey!
I can’t figure out where the huge space above the logo is coming from. Please post the login details here so that we can see all the css modifications. And please update the theme to version 4.0.
Cheers!
IsmaelMarch 6, 2017 at 1:46 pm #756389Hi Ismael
credentials attached
Regards MartinMarch 7, 2017 at 6:22 am #756767Hey!.
We tried to duplicate the layout described in the screenshot as much as we can. I’m sure you can do the rest.
.addheader { float: right; width: 100%; color: #222 !important; text-transform:uppercase; } .addheader a { color:#ccc !important; text-transform:uppercase; font-size: 100%; } .addheader1 { background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/schloss.png") no-repeat scroll 0 0; /* border: 1px solid #ccc; */ float: left; min-height: 51px; padding: 0 12px 0 0; text-align: right; width: 24% !important; min-width: 120px; } .addheader2 { background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/anfrage.png") no-repeat scroll 0 0; float: left; min-height: 51px; padding: 0 12px 0 0; text-align: right; width: 24% !important; min-width: 120px; } .addheader3 { background: rgba(0, 0, 0, 0) url("http://dpg.4lke.de/wp-content/uploads/rueckruf.png") no-repeat scroll 0 0; float: left; min-height: 51px; padding: 0 12px 0 0; text-align: right; width: 24% !important; min-width: 120px; } #header .widget_text { position: absolute; top: 20px; right: 0; width: 40%; z-index: 9999; } @media only screen and (min-width: 768px) { /* Add your Desktop Styles here */ .logo img { width: 340px; height: 150px !important; max-height: 150px !important; top: -20px; } } @media only screen and (max-width: 768px) { /* Add your Mobile Styles here */ .addheader3, .addheader2, .addheader1 { width: 52px; min-width: 52px; } .addheader3 a, .addheader2 a, .addheader1 a { display: none; } #header .widget_text { top: -20px; } }
Regarding the ubermenu, please contact the plugin author.
Best regards,
IsmaelMarch 7, 2017 at 2:18 pm #757003Hi Ismael
GREAT & THANK YOU VERY MUCH.There is no issue with the Ubermenu – it was just for your information that there is some CSS regarding the header.
But i have one (probably) minor thing i fiddle around for a while now.
Can you please help me to understand where i have to look for the solution?The problem:
The text “Kontakt” & “Anfrage stellen” should be a bit closer at the icons.
This value for addheader2 & addheader3 would be perfect for desktop:
padding:0 55px 0 0
If i do that and than resize the screen the text is to close and overlaps the icon short before the breakpoint.
I tried it with a relative value ” padding: 0 3% 0 0″ but that didnt help neither.
Then i tried it with variations of margin and / text-intent but i cant solve it.
Could you please point me at least in the right direction to find the solution?
(Sometimes its just small things that can drive you crazy – doesnt it?)Kind regards Martin
March 8, 2017 at 11:01 am #757686Hey!
Add this css code:
.addheader a { left: -20px; position: relative; }
You can also decrease the width of the “addheader” containers.
Regards,
IsmaelMarch 9, 2017 at 12:27 pm #758309Hi Ismael
sorry – but that doesnt work.
Maybe i wasnt clear when i described the problem.
Can you please watch the screencast?
https://drive.google.com/open?id=0BzF3a9LXV99JNFBqYnhMNjhzS2MIt shows what happens if i resize the window.
Thats what we need to solve and what i cant figure out how to fix.Regards Martin
March 10, 2017 at 10:27 am #758794Hi!
Thank you for the update.
Adjust the min-width value of the “addheaders” from 120px to 160px.
Cheers!
IsmaelMarch 10, 2017 at 5:27 pm #759046Hi Ismael
thanx again.Can you please leave that thread open??
I guess that i will have twor or three minor things but first i have to adjust some other elements before i can go further with the header.Kind regards martin
March 11, 2017 at 12:01 am #759185Hi,
Sure, we will keep this thread open until we hear from you further.
Feel free to get back to us if you have more questions and we will be happy to help :)
Best regards,
VinayMarch 11, 2017 at 2:34 pm #759366Hello Vinay
faster back than you thought, right? ;-)
We have some real trouble with getting the positions & behavior (for mobile and different viewportsizes) we need and before we start to adjust i thought it might better to ask some PROs – you.
At first we would like to make sure that we dont have any unnecessary or interfering CSS.
Can we please start with this?Ismael gave us this CSS:
.logo img { width: 340px; height: 150px !important; max-height: 150px !important; top: -20px; }
Would it be better to have it like that: width: auto; ?
.logo img { height: 150px !important; max-height: 150px !important; top: -20px; width: auto; }
Two:
.addheader { float: right; width: 100%; color: #222 !important; text-transform:uppercase; }
Is that float:right really necessary??
If i remove it it doesnt change anythingKind regards Martin
March 13, 2017 at 6:19 am #759825Hi!
1.) Yes, you can remove that.
2.) If you adjust the height and max-height property to 156px it will still look the same. We added the css declaration to get the actual size of the logo image which is 350x156px.
Cheers!
IsmaelMarch 13, 2017 at 11:58 am #759933Hi Ismael,
yes, ok, but can we use width: auto; or does it create problems?Kind regards
Martin.March 14, 2017 at 4:30 am #760395Hi!
Like I said, it’s the same. It won’t create any issue. For more inquiries, please create a new thread. Thank you!
Regards,
IsmaelMarch 14, 2017 at 1:54 pm #760714Hi Ismael
please leave that thread open since there are still some questions.
But i need some time to collect them and fix some other stuff before.
Thanx and have a nice day.
Kind regards MartinMarch 15, 2017 at 7:47 am #761189 -
AuthorPosts
- You must be logged in to reply to this topic.