Tagged: logo subtext, mobile
-
AuthorPosts
-
June 22, 2018 at 5:21 pm #976413
HI,
with your code snippets I was able to create an overflow logo image with subtext on the right.
But on mobile and tablet the subtext jumps to the right and displays over the burger icon.
How can I fix that?
Thanks for your help.
BrittaJune 22, 2018 at 9:10 pm #976464Hey Britta,
It seems the maintenance page still seems to be up.
Best regards,
Jordan ShannonJune 22, 2018 at 10:33 pm #976500Hi Jordan,
it looks like the maintenance page is on because I use this page as information…… => but you can scroll down and click at any link and it will bring you to the main site with its menu – at least it works for me when I’m locked out of WP or I’m using my smartphone.
Thanks for looking at it,
BrittaJune 23, 2018 at 1:24 pm #976939Hi Britta,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media screen only and (max-width: 479px) { #top .logo .subtext { right: 195px; } } @media screen only and (min-width: 480px) and (max-width: 767px) { #top .logo .subtext { right: 195px; } }
You can work on the number of px if this does not work for you.
If you need further assistance please let us know.
Best regards,
VictoriaJune 23, 2018 at 5:29 pm #977038Hi Victoria,
thank you very much.
I tried to set your code into Quick CSS, didn’t work, and as I use a Child Theme, I put it into the enfold-child style.css file, but didn’t work easer. Nothing seems to work what I put into the child style sheet anyway …
But Quick CSS worked fine up to now.This is the code I have in Quick CSS until now:
/*Add space around the logo*/
#header_main {
/* Increase the top and bottom space */
padding: 8px 0;
}#top #main {
/* If the header overlap your content adjust the padding top value */
padding-top: 130px;
}/* CSS – Subtext on right */
#top .logo,
#top .logo a {
overflow: visible;
}/* Subtext styling */
.logo .subtext h1 {
font-size: 42px;
font-weight: 600;
}.logo .subtext {
position: absolute;
top: 65%;
right: 0;
transform: translate(111%, -50%);
z-index: 999;
}/* CSS – Logo overlap content */
#top .logo,
#top .logo a{
overflow: visible;
}.logo img {
height: 140%;
max-height: 140px !important;
}/* CSS – Font MainMenu */
.av-main-nav>li>a span.avia-menu-text {
letter-spacing: 1px !important;
font-weight: bolder !important;
}I had put your code right before the “CSS – Logo overlap content” – because before I learned that subtext position and styling has to be “anchored” with the Logo – and the overlap content is like a different theme… (at least this is how it worked out at the end with the subtext positioning)
Am I right with the positioning of your code or doesn’t it matter?
With your code I do not understand very well what “right: 195px” means, what does it do? – I tried to change it to different px like 95px and 295px, a bit extremes, but to see if any thing changes, but it doesn’t at all.
So I wonder if this could be because the code already set for the positioning of the subtext is so different..?
Appreciate a lot your insights!
Thanks,
BrittaJune 25, 2018 at 5:26 am #977313Hi,
Am I right with the positioning of your code or doesn’t it matter?
It doesn’t matter where you put the code but css media queries are usually added at the very bottom of the stylesheet or the Quick CSS field because it’s supposed to override the default styles. Please provide the login details in the private field. And provide a screenshot of the expected header layout on mobile view.
Best regards,
IsmaelJune 25, 2018 at 5:38 pm #977578Hi Ismael,
thanks for your answer regarding positioning.
Login details in privat content.CSS file at Child Enfold is “empty” – I only use the Quick CSS field.
Data at Child Enfold function.php:
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
function kriesi_logo_addition($sub) {
$sub .= ‘<h1>Zahohie</h1>’;
return $sub;
}Don’t know what you mean with
provide a screenshot of the expected header layout on mobile view
How do I do this?
I have a png as Logo and would like to have the text “Zahohie” written at the right side, same as on big screen, but smaller.
The Logo on the mobile screen, as it is displayed at the moment, already feels a bit big and I was thinking that it should be a bit smaller, but how do I do this?
I try to explain what my idea of the Logo and Text positioning at mobile screen is:
Because the overflow position for the logo at mobile screen is not possible so I would position the text on the right side of the logo, and it should be a bit under the wing or close to the upper end of the right wing. So that the upper right wing and the upper text area are in line. And I think that the text as it shows up at the moment at the mobile screen should be a bit smaller as well.
Hope you understand what I mean.Thanks,
BrittaJune 27, 2018 at 8:18 pm #978559Hi,
any input here?Meanwhile I created a second logo only for mobile using your code provided in your documentation.
This worked out fine – BUT the overflow text from the main logo ist still hanging along over the burger-menu on the mobil screen.
How can I get rid of this?
Thanks,
BrittaJune 27, 2018 at 8:26 pm #978561Hi,
added at private content all my Quick CSS. So you have all information.
CSS file at enfold-child has no code added.
Regards,
BrittaJune 28, 2018 at 2:48 am #978668Hi,
1. For testing purpose, I have disabled CSS and JS merging from Enfold > Performance tab.
2. Please remove the code to add subtext from the child theme functions.php file.
3. Remove the old CSS which you posted in the previous ticket. I have added new CSS in child theme styles.css.
4. Create a header widget area by adding the below code to the bottom of the functions.php file.//-------------------------------- // Header widget area //-------------------------------- add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
Unfortunately, the functions.php file is not editable for me. Please create a header widget area and get back to us so we can help you with the logo overflow issue.
Best regards,
VinayJune 28, 2018 at 9:47 am #978804Hi Vinay,
thanks for your help!
I did everything you instructed me.
But this leaves me quite in a helpless state – don’t know what to do with that actual state – as I mentioned I’m only learning by doing and am not a professional here…
Thanks for further instructions,
BrittaJune 28, 2018 at 4:48 pm #978952Hi,
just to update:
I worked myself into the widget issue, feels better now – hope I got it right and prepared. Put a text widget into Header Area. But now I have a Header 1 area as well, not sure what this is for?
Deleted the different image for mobile and the corresponding code at functions.php
So text shows up beside the logo on screen and mobile correctly, but the size is to small.How do I get the styling for the “subtext” (now in a widget) back?
And the CSS is missing, can I enable the CSS and JS merging from Enfold > Performance tab??
All the CSS you added at the enfold-child style sheet, what are all these color and font-size settings for, especially under Menu? How do I handle all this?
And can you help now with the logo overflow issue, please.
I really would like to go on … its a week now waiting on responses… looks like we have an issue here because of different time zones…
Looking forward to a more fluid work pace, thanks,
BrittaJune 29, 2018 at 2:44 am #979161Hi,
Thank you for your patience and great job so far. This type of customization usually takes time because it is specific to your site. Usually, we recommend hiring a freelancer as it is out of our support scope but we do try our best to help you as we like to keep our customers happy :)
1. I have adjusted the header height, logo and widget margins to make it overflow.
2. Please enable CSS and JS merging once the customization is process is completed. Else the new changes made will not show on the frontend.
3. You can access the functions.php file via FTP in case the same issue continues.
4. Widget text can be styled using custom CSS in the child theme styles please scroll to line 309 or look for /* Widget Text */.
5. You have some duplicate styles for the menu in theme options Enfold > Advanced Styling > Please remove duplicates.
6. The “Zahohie” logo title was added in the widget title area, I have moved it to the widget text area and styled using CSS.Hope you are happy with the logo overflow :)
Let us know if you have any issue related to Enfold we are happy to help you!
Best regards,
VinayJune 29, 2018 at 4:16 pm #979403Hi Vinay,
thank you very much for this great job and all your willingness and support!!!!
So far it looks great, the overflow is showing up even at mobile screen – GREAT!!! – (Didn’t expected that …)Now I’m getting the idea and I’m working at the responsive part, because at mobile your settings looks great but at larger screens the font could be a bit bigger… so I’m using the above snippets provided by Victoria, only changed “media screen only” to “media only screen” (the code editor at my host “asked” for this change) – and it works :)) – ok, still have to refine…
…and to clean up the duplicates at Enfold > Advanced Styling once I understand clearly what is what at the css file, so I can find the duplications, but till now haven’t found any.
Looks like you already deleted font styling at css?!Now for my understanding:
CSS and JS merging – you said: “enable once the customization process is completed”
I understand that you refer to the customization process at the Logo – or do you mean also the customization process at the header in total or even more – is it related to all the changes I do at style.css?
What happens if I need to add or change something later? Can I enable and disable / or even should I enable and disable always CSS and JS merging before I make changes at style.css?
Thanks for clarifying this.And will it be necessary to make all the changes and setting related to the header at style.css in the future?
I’m asking because I see that my old setting of header heights is still in the settings but overwritten by the style sheet. What do I do with these settings, this is a kind of duplication as well, isn’t it?Append search icon to main menu is still enabled but not showing up – is this related to the CSS and JS merging?
Thanks for clarifying this also.Best regards,
BrittaJune 29, 2018 at 11:49 pm #979493HI,
have another question related to the css file you provided for this styling. There is a lot of stuff in it which feels to me that I’m not using it at this moment, like all the shopping cart codes.
Is this useful for something even it is not in use? Or can I delete all redundant code?
Doesn’t it effect also the performance?
If so, could you give me a short “index” of what is necessary code for this issue here and what not – thanks!
Of course I have already saved a copy of your original code provided, just in case I would need it later on.But unfortunately I did not saved the first one, where these color and font-size settings were in, and now I’m thinking that it would be better to write the font settings into the css file and delete at Enfold > Advanced Styling all the related settings. This way I could add also the still missing style for bold and active state color for the submenu.
Would it be possible to provide me a short example / snipped of css code for font setting at the main menu, and if appropriate, where to place it in the css file.
Would appreciate this a lot.
Thank you very much,
BrittaJune 30, 2018 at 3:21 am #979505Hi,
Glad you like the change.
1. Enabling CSS and JS merging loads the CSS/JS files which are cached. When you make changes to CSS/JS files, most of the time changes will not reflect until the cache expires. Hence it is recommended to disable during the development and enable it later to improve the site speed.
2. Add your custom CSS to the child theme styles.css file. The changes will not be overwritten when the main theme is updated. Yes, that’s correct, we have used CSS to overwrite the header settings. It’s ok you can leave the header settings as it is.
The additional CSS which you are not using now might be useful in the future it is lightweight as well you can simply comment it out. I left it there because it is really lightweight and the extra code makes it super easy if you need any future modifications.
3. By default, the search icon is disabled in mobile. I have added the below CSS to enable it.
/* Display in mobile */ @media only screen and (max-width: 1000px) { #top #header .av-main-nav>li#menu-item-search { display: inline-block!important; }}
4. Don’t worry you haven’t missed out on any code, to add the custom styles to the menu items like color, hover effects please check our documentation.
Please bookmark the documentation, we constantly add new topics and update the code snippets here.
Best regards,
VinayJuly 1, 2018 at 8:30 pm #979896Hi Vinay,
thank you very much for all the clarifications.
Now I know that the broken looking site at normal screen (sticky header not working, white space between Header and fullscreen slider, which is not showing up as fullscreen …) all this is NOT related to CSS and JS merging, rather than to the style sheet, which is overwriting many settings. I tested it today, without style sheet everything is in place again, but of course the logo settings are gone with that…
So I have quite a bit to do to bring both together.
I learned a lot through this process here.
Thank you very much for your support.
Best regards,
BrittaJuly 2, 2018 at 1:17 am #979922Hi,
To make the code work with fixed header please define the header, logo and widget height in pixels. Then the top padding for the “#main” container in the CSS code. You may need a little more adjustments depending on the header layout.
/*-------------------------------- Fixed header in mobile ----------------------------------*/ @media only screen and (max-width:767px) { /* fixed header */ .responsive #top #header { position: fixed!important; } /* Top padding to move the page content */ /* Transparent header */ .html_header_transparency #top #main, /* No transpatancy header */ #top #main { padding-top: 166px !important; } /* Define a height value for header elements */ .responsive #top #header #header_meta { height: 50px; } .responsive #top #header #header_main .inner-container .logo { height: 200px; } .responsive #top #header #header_main .inner-container .widget { height: 150px; } #top #header #header_main .container.av-logo-container .inner-container { height: 150px; } }
Thank you for the kind words, please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.Thank you for using Enfold :)
Best regards,
VinayJuly 2, 2018 at 4:57 pm #980147Hi Vinay,
thank you very much for the code!
Best regards,
BrittaJuly 2, 2018 at 5:45 pm #980173Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonJuly 8, 2018 at 3:32 pm #982701Hi Shannon,
thanks for asking.
I took my time to finish this subject and to digest the input I received here. Now it is done.
If somebody comes along and would be interested in how I did it, here I share my code:/*Add your own styles here:*/ /*=================== Header widget position ====================*/ /* enable flex at header */ .container.av-logo-container .inner-container { display: flex!important; /*background: #eee;*/ flex-direction: row; flex-wrap:wrap; padding: 8px 0 0 0 } /* position - elements in header */ #top #header .logo, #top #header .widget { position: relative; } /* Logo - Position */ #top #header .logo { /*background: #ffdd00;*/ order:1; } /* Menu - Position */ #top #header .main_menu { order:3; flex-grow: 1; } /* Header widget - Position */ #top #header .widget { order:2; padding: 0px; /*background: #f222;*/ } /* (Reset default theme styles - original naming) - position of widget text in header */ .responsive #top #header #header_main .inner-container .widget:nth-child(3) { margin-top: 10px; clear: none!important; margin-left: 10px; margin-right: auto; } /* ============== CSS - Logo overlap content ================= */ #top .logo, #top .logo a{ overflow: visible; } .logo img { height: 140%; max-height: 140px !important; } /* ================= Mobil + Tablet Settings ==================== */ @media only screen and (max-width: 767px) { /* fixed header */ .responsive #top #header { position: fixed!important; } /* height header_main */ #header_main { height: 71px; } #top .logo, #top .logo a { max-width: 90% !important; width: 90px !important; } /* Position of Text in Header-Widget */ .responsive #top #header #header_main .inner-container .widget:nth-child(3) { margin-top: 20px; clear: none!important; margin-left: 10px; margin-right: auto; } } @media only screen and (min-width: 768px) and (max-width: 989px) { /* fixed header */ .responsive #top #header { position: fixed!important; } /* height header_main */ #header_main { height: 67px; } #top .logo , #top .logo a { max-width: 100% !important; width: 100px !important; } .logo img { height: 100%; max-height: 100px !important; } /* Position of Text in Header-Widget */ .responsive #top #header #header_main .inner-container .widget:nth-child(3) { margin-top: 17px; clear: none!important; /* Element remains adjacent to floated elements*/ margin-left: 0px; /* weil Logo container hier breiter ist als bei den anderen und damit automatisch Abstand haelt */ margin-right: auto; } } /* ===================== Header + Widget at very small screen on media ========================*/ @media only screen and (max-width: 320px) { /* hide widget on very small screen */ #top #header .widget { display: none; } }
Learned a lot through this project.
Thanks a lot,
BrittaJuly 9, 2018 at 5:24 am #982934Hi,
Glad it was helpful! and thanks for sharing your code here :) I checked your site and the header looks perfect on both desktop and mobile.
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.Thank you for using Enfold :)
Best regards,
Vinay -
AuthorPosts
- The topic ‘Image logo with subtext – on mobile and tablett displays over burger’ is closed to new replies.