- This topic has 15 replies, 2 voices, and was last updated 8 years, 10 months ago by
Tom.
-
AuthorPosts
-
March 23, 2016 at 5:34 pm #181135
Matt
Hi Tom
I have a site m building that only has a small header image. I want to add more text up next to it but can’t make the header widget wider. I tried a few things but can’t only make it wide enough to meet the header image.
Thanks
MattMarch 23, 2016 at 11:03 pm #181176Tom
Lead DeveloperLead DeveloperHi there,
You can adjust the header widget width with this CSS:
.header-widget { max-width: 50%; }
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Let me know if you need more info π
March 24, 2016 at 4:44 am #181230Matt
Thanks
That worked a treatMarch 24, 2016 at 4:51 am #181231Matt
On mobile the widget is almost right of the screen and you can only read first letter, is that a simple fix.
March 24, 2016 at 8:14 am #181280Matt
Can I just turn the header widget off on mobile?
I have this but not working
@media (max-width: 768px) {
.header-widget {
display:none;
}March 24, 2016 at 10:09 am #181335Tom
Lead DeveloperLead DeveloperThat should work – can you link me to your site?
March 24, 2016 at 11:40 am #181375Matt
Hey Tom
Don’t worry I think its my iphone or something with the cache, it works on android.
Thanks
MattMarch 24, 2016 at 11:42 am #181377Tom
Lead DeveloperLead DeveloperAwesome π
March 24, 2016 at 2:12 pm #181396Matt
One more thing is there a way to make menu on mobile open by default and in two columns side by side.
I have a picture menu and they are all circle shaped, I want if possible to have all 6 of them stacked 3 high 2 wide.
Hope that makes sense
Thanks
MattMarch 25, 2016 at 12:07 am #181463Tom
Lead DeveloperLead DeveloperHi there,
This should open the mobile menu by default: https://gist.github.com/generatepress/d50527e008498000e680
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
You might be able to put them in two columns like this:
@media(max-width: 768px) { .toggled .main-nav .sf-menu > li { float: left !important; width: 50%; clear: none; } }
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Hope this helps π
-
This reply was modified 8 years, 10 months ago by
Tom.
-
This reply was modified 8 years, 10 months ago by
Tom.
March 25, 2016 at 6:26 am #181563Matt
Hey Tom
add_filter( ‘generate_navigation_class’, ‘generate_mobile_menu_toggled’);
function generate_mobile_menu_toggled( $classes )
{
$classes[] = ‘toggled’;
return $classes;
}
Cant get the menu to open by default dose that code just go in custom css?And
.toggled .main-nav .sf-menu > li {
float: left;
width: 50%;
clear: none;
}
gets it to float left but not in two columns.
Here is link to site http://91b.96d.myftpupload.com/ if that helps
Also header widget is still showing up on my iPhone , not sure if its my phone or what any ideas
Thanks heaps
MattMarch 25, 2016 at 11:14 am #181678Tom
Lead DeveloperLead DeveloperThat first block of code is PHP, so it needs to be added using these instructions: https://generatepress.com/knowledgebase/adding-php-functions/
For the CSS, try the updated code above: https://generatepress.com/forums/topic/wider-header-widget/#post-181463
March 25, 2016 at 11:52 am #181706Matt
ok figured out the iPhone problem, but not the menu
March 25, 2016 at 11:56 am #181707Tom
Lead DeveloperLead DeveloperDid you make the changes I mentioned here?: https://generatepress.com/forums/topic/wider-header-widget/#post-181678
March 25, 2016 at 12:48 pm #181710Matt
Sorry yes done all that, they now sit side by side (very nice)
But cant get them to open by default
I installed plugin generate-simple-php/custom.php and added code there but still no luck.
Unfortunately I am using godaddy to use and edit wordpress (never again). Do you think that could be the problem? It was the reason my iPhone was being cached -
This reply was modified 8 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.