-
AuthorPosts
-
June 18, 2015 at 12:40 pm #461229
URL: http://www.facialfitnessworkout.co.uk
Hi there,
My client is not happy with the very small display of logo & tagline, phone numbers and website content on the mobile version of her website.She wants it to be more user friendly like these:
http://www.gaynorgrozieracupuncture.com
http://www.rebekah-harriman.com
showing all important data larger and underneath each other.Any chance to convert the enfold template similar to these websites? To a more user friendly mobile version?
Thanks a lot,
SusanneJune 19, 2015 at 5:56 am #461677Hi Susanne!
Since all the information in your header is in an image it would be difficult for us to make any changes with code. What you could do is make a new image and display that for mobile instead.
Best regards,
RikardJune 19, 2015 at 10:31 am #461768Thank you for this, Rikard!
What do you exactly mean by “make a new image and display that for mobile instead”?
Or shall I separate the logo, tagline and phone?
But then – how do I fit all 3 items into the header? Because Enfold just offers to upload a logo?
Can I add tagline & phones with additional coding in the header?Thanks a lot,
SusanneJune 19, 2015 at 2:20 pm #461902Hi!
You can refer to this post and display a different logo on mobile – http://kriesi.at/documentation/enfold/change-logo-on-mobile/
Regards,
YigitJune 19, 2015 at 5:17 pm #462064Thank you for this, Yigit.
I still don’t really know what to do.
Could you please advise me about:
a) what size a logo for mobile version should have
b) how I can also fit the tagline into the mobile header
c) how do I code in the phone numbers?
At the moment, the actual logo, the tagline and phone numbers are all one picture named “logo”.
So should I split these three items up for the mobile version? And how do I fit/code them into the header?Thanks a lot,
SusanneJune 19, 2015 at 9:25 pm #462120Hi there,
I designed & uploaded a new logo for the mobile version (340 x 399 px).
Then I added the code you suggested to functions.php:
add_theme_support(‘avia_template_builder_custom_css’);
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(wp_is_mobile() )
{
$logo = “http://www.facialfitnessworkout.co.uk/wp-content/uploads/2015/06/logo1.png”;
}
return $logo;
}However, on the smartphone this new portrait-shape logo is still as small as the normal one before.
Please help.
Thanks,
SusanneJune 20, 2015 at 10:02 am #462176perhaps you can do the phonenumbers in the menu on top – this has the opportunity that mobile users can click on it.
And you have one problem of the logo less.Perhaps your customer likes the solution of kriesi here on Board : have a look what happens to the Kriesi.at/Premium Themes
Info when scrolling down.June 20, 2015 at 10:48 am #462180Guenni007 – thank you so much for your suggestions.
However when I add the code to functions.php I get a fatal error message (quoted below) and the site is no longer opening. I had to delete the addition in cpanel.
Good thought adding the phone numbers in the top area. Pity that this is also visible on the desktop version – but no big issue.
I tried the .css suggestions – but nothing changes.I get an error message now even if I add the code I added yesterday… No idea what’s going on?
“Parse error: syntax error, unexpected ‘:’ in /home/judi9294/public_html/wp-content/themes/enfold-child/functions.php on line 14”Thanks for your support!
SusanneJune 20, 2015 at 11:38 am #462189so lets try togehter:
in child-theme functions.php:
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<strong class='logo-title'>“… the natural route to a healthy complexion</strong>"; $sub .= "<strong class='logo-title logo-subtitle'>and a younger-looking you…”</strong>"; return $sub; }
on quick css:
#top .logo, #top .logo a { overflow: visible; } #top .logo img { float: left; } #top .subtext { float: left; position: relative; } #top .logo-title { color: #000; font-size: 20px; left: 7px; opacity: 1; position: absolute; top: -15px; transition: opacity 0.4s ease-out 0s; white-space: nowrap; } #top .logo-subtitle { color: #aaa; left: 60px; top: 15px; } #top .header-scrolled .logo-title { opacity: 0; }
and for mobile :
@media only screen and (max-width: 770px) { .responsive #top .logo-title { opacity: 0; } }
this looks than this way:
June 20, 2015 at 11:48 am #462191yes and i know why its wrong with your input – becaus quotation marks in your text must be replaced by html entities e.g:
”
and by the way with navigation under the logo the scroll setting makes no sense.
June 22, 2015 at 9:58 am #462518June 22, 2015 at 11:02 am #462553Guenni007, thank you so much for your support – just had an extremely busy weekend and will work on this tomorrow.
And thanks, Rikard for asking – tomorrow I’ll be in touch!Cheers, Susanne
June 22, 2015 at 1:43 pm #462751June 22, 2015 at 1:50 pm #462765This reply has been marked as private.June 23, 2015 at 12:08 pm #463298June 23, 2015 at 1:32 pm #463340Hi Andy,
Unfortunately no change It’s about the mobile version: There is no change in the header on the mobile … Your screenshot shows it all on one level.
You see this underneath each other – Logo on top, then slogan on 2 lines.
That’s what Guenni007 suggested with his code, too.
Let’s see if anybody has another ides…
Thanks for all support, You’re a great team!Susanne
June 23, 2015 at 10:25 pm #463673Just saw a typo in my last text:
On the mobile, you SHOULD see these elements underneath each other – Logo on top, then slogan on 2 lines.June 24, 2015 at 7:25 am #463806perhaps it is possible to get a solution as it is seen on https://theeventscalendar.com/product/wordpress-events-calendar-pro/
they naturaly use enfold too i guess.
And this solution is a nice one to have a normal (not a mobile version) as long as it is possible
On tablets this might be the perfect solution for me too.btw: i can not see a change on your site – did you have a test install elsewhere ?
i’m only a participant like you – but i often learn better by solving problems from other users.June 24, 2015 at 10:15 am #463862Guenni007,
That’s exactly what I wanted to say: I can NOT see any changes on my site, even after having installed the code you sent.No – I don’t have a test install – but did you get the login details to the website itself I sent privately?
Wir können übrigens auch auf deutsch diskutieren – ich bin Deutsche…
Many thanks for your support,
Susanne<June 24, 2015 at 10:19 am #463867Guenni007,
This solution you suggest on solution as it is seen on https://theeventscalendar.com/product/wordpress-events-calendar-pro/ looks great.
But I have NO idea how to code this.
Thanks for this anyway,
SusanneJune 24, 2015 at 10:35 am #463876I found this suggestion by Yigit in another post in the forum, customised the URL and added it to quick css:
.header-scrolled .logo img { opacity: 0; }
.header-scrolled .logo a {
background-image: url(http://www.facialfitnessworkout.co.uk/wp-content/uploads/2015/06/NEWmoblogo.png);
background-size: contain;
background-repeat: no-repeat;
}BUT it doesn’t change anything either.
More ideas?
Thanks,
SusanneJune 25, 2015 at 10:09 am #464500Hey!
as Rikard already told you it won’t be possible for us to make any changes via CSS, because you are using an image as your header. If you would separate logo, slogan, etc. then we could try to change position of these different elements. If you want to stick with one image in your header, then you could just try to build the image exactly how you want it and implement it as mobile header.
Hope this helps.
Cheers!
AndyJune 25, 2015 at 10:22 am #464507Hi Andy,
Thanks a lot.
Please can you tell me how to separate logo, slogan and phone numbers AND have all three in the header?
That would help me enormously.
Thanks for your patience,
SusanneJune 25, 2015 at 1:23 pm #464558well first of all i used this logo for you:
and than i put in child-theme functions.php the following:
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<span class='logo-title'>“…the natural route to a healthy complexion <br /> and a younger-looking you…”</span>"; return $sub; }
I used a custom header hight of 170px and the non shrinking header. This makes no sense for a slogan of that length! I did it with the non sticky header – because for Logo and Slogan and Normal Navigation i found no way to set up the data-scroll-offset for “main” And take the option : “Let logo and menu position adapt to browser window”
Here you can see the result: Guennis Testseite
this is the quick css :
#top .logo,#top .logo a { overflow:visible } #top .logo img { float:left } #top .subtext { float:left; font-size:32px; font-weight:300; color:#7f0afc; position:relative; font-family:"Dancing Script" } #top .logo-title { position:absolute; line-height:normal; text-align:center; left:15px; opacity:1; top:30px; transition:opacity .4s ease-out 0; white-space:nowrap } #header { display:block; visibility:visible; position:relative; right:0; left:0; top:0; transition:all .4s ease-in-out 0; width:100%; padding:0 } .header_color .inner-container::after { clear:both; content:""; display:table } .header_color .inner-container { padding-bottom:20px; padding-top:15px; position:relative; transition:all .4s ease-in-out 0; width:100%; margin:0 auto } .header_color .logo,.header_color .main_menu { display:inline-block; text-align:left; vertical-align:middle; height:auto; transition: all 0.5s ease-in-out 0s; } .header_color .logo { margin-bottom:0 } .logo img { max-height:150px!important; margin:0 auto } .main_menu { margin-top:-85px; position:absolute; right:30px; top:50%; transition:all .4s ease-in-out 0 } .responsive #top #wrap_all .container { float:none; max-width:100%; padding-left:0; padding-right:0; width:100%; margin:0 auto } #advanced_menu_toggle,#advanced_menu_hide { right:20px; top:20px; margin:0; padding:0; color: #7f0afc; } #advanced_menu_toggle:hover, #advanced_menu_hide:hover { background-color: #7f0afc !important; color: #fff !important; } .responsive .logo img { margin:0 auto } @media only screen and (max-width: 1150px) { #top #header_main > .container,#top #header_main > .container .main_menu ul:first-child > li > a { height:auto!important; line-height:auto!important } #header_main .container { visibility:visible } .av-main-nav li > a { height:auto!important; line-height:inherit!important } .header_color .logo,.header_color .main_menu { display:block; position:relative; text-align:center; width:100%; margin:0 auto 10px; padding:0 } .logo,.logo a { display:inline-block; height:100%; position:relative; width:100% } #top .logo img { float: none; height: 200px; margin: 0 auto; max-height: 250px !important; } .header_color .main_menu { position:relative; top:21px; right:inherit; margin:0 auto 30px!important } #top .subtext { font-size: 38px; } .av-main-nav-wrap { float:left; left:50%; position:relative } .av-main-nav-wrap ul { padding-top:15px; position:relative; right:50% } #top .subtext,#top .logo-title { width:100%; left:0; top:0 } } @media only screen and (max-width: 770px) { .header_color .inner-container { padding-bottom:30px; padding-top:0 } .responsive #top .logo { display:table; float:none; height:auto!important; width:100% } .responsive #top .logo img { float:none; display:inline-block } #top .subtext { float:none; display:block; font-size:28px; text-align:center; top:-70px } #top .logo-title { left:0; line-height:normal; position:absolute; text-align:center; white-space:normal; width:100%; right:50% } }
June 25, 2015 at 3:25 pm #464581Guenni007,
Thank you so much for your efforts.
I’ve inserted both, the suggested code in functions and the quick .css.
But as you will see now on the website, the header & menu design as well as the main content are now completely out of shape… (www.facialfitnessworkout.co.uk)Don’t know why it works on your test site?
Best wishes,
SusanneJune 25, 2015 at 6:32 pm #464658this seem to be not the header logo left menu right option !
And you have to look wheather your existing quick css code did not get in to conflict with something
it seem that you have still in it the option on smaller screens with opacity zero
.responsive #top .logo-title {
opacity: 0;
}`- This reply was modified 9 years, 5 months ago by Guenni007.
June 25, 2015 at 6:54 pm #464661and sorry i should have been more specific here :
.responsive #top #wrap_all #header_main .container { float:none; max-width:100%; padding-left:0; padding-right:0; width:100%; margin:0 auto }
because otherwise all the other containers do the same width with 100%
- This reply was modified 9 years, 5 months ago by Guenni007.
June 25, 2015 at 8:24 pm #464686Guenni007,
You are ever so helpful, thank you so much.I’ve now taken out all other .css from the quick .css and just added what you sent me.
Option Header logo left, menu below.
The results:
1. PC version: As you’ll see, the menu crosses through the header. Also, the main content is still out of shape (no longer in the wrapper???).
2. However the mobile version looks good.So now I’ve got a good mobile version but the pc version is not working properly …
Also, the client wants the tagline font to be Bradley Hand IT.Thank you for being so patient and supportive.
Best wishes,
susanneJune 25, 2015 at 10:08 pm #464706first of all i mentioned that logo left menu right.
otherwise we could save a lot of time because that is more simple than the other way.June 25, 2015 at 10:59 pm #464717Logo left, menu right – I’ve done that now for you to see: on PC it looks completely out of shape.
-
AuthorPosts
- You must be logged in to reply to this topic.