- This topic has 24 replies, 4 voices, and was last updated 3 years, 2 months ago by
Tom.
-
AuthorPosts
-
October 18, 2018 at 8:45 am #704281
Ivan Cazorla
Hi there, I’ve set my header with a logo and I know you can add widgets to the header but they get aligned to the right. Is there any way to have 1 widget on the left, the logo in the middle and another widget on the right?
Similar to what this website does.
thanks!
GeneratePress 2.1.4GP Premium 1.7.2October 18, 2018 at 8:54 am #704287Leo
StaffCustomer SupportHi there,
This should help: https://docs.generatepress.com/article/split-header-three-sections/
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 18, 2018 at 8:55 am #704290Ivan Cazorla
thanks, I’ll check that out!
October 18, 2018 at 9:10 am #704297Leo
StaffCustomer SupportNo problem ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2019 at 7:35 am #798763Ivan Cazorla
Hi there, How can I make that the logo links to a ceratin page instead of a link? I have a website with multiple languages on different domains
February 1, 2019 at 7:53 am #798783David
StaffCustomer SupportHi there,
are you using the Header in Three Sections that Leo linked to?
If so then you can edit the URL in this line:
<a href="URL TO YOUR WEBSITE" title="YOUR SITE NAME" rel="home">
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 1, 2019 at 8:02 am #798800Ivan Cazorla
Yes, thank you!
February 1, 2019 at 8:39 am #798829David
StaffCustomer SupportGlad we could help.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 3, 2019 at 11:39 pm #800666Ivan Cazorla
Hi, I did that, as you can see here:
<a href="https://www.deacampada.com/" title="DeAcampada" rel="home">
But as I’ve tried to explain, I have a website with multiple domains, deacampada.com, deacampada.fr, deacampada.it an so on. But the logo in each different domain redirects to the .com domain every single time, instead of going to the home page of each domain in their language.
thanks,
ivanFebruary 3, 2019 at 11:40 pm #800667Ivan Cazorla
Same happens with the cart icon on the right.
February 4, 2019 at 9:55 am #801204Tom
Lead DeveloperLead DeveloperAre you using a plugin to determine which domain is in use? Something like Polylang or WPML?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 4, 2019 at 12:01 pm #801319Ivan Cazorla
Yes, I am using WPML
February 4, 2019 at 5:24 pm #801514Tom
Lead DeveloperLead DeveloperYou could try this:
<a href="<?php home_url( 'your-page-slug' ); ?>" title="YOUR SITE NAME" rel="home">
That will link to yourwebsite.com/your-page-slug
You’ll need to make sure “Execute PHP” is checked in the hook.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 4, 2019 at 11:51 pm #801680Ivan Cazorla
It works, can I do the same with the cart icon?
I also need to put a my account icon next to the cart icon. Can we do that?
thanks,
IvanFebruary 5, 2019 at 8:23 am #802198Tom
Lead DeveloperLead DeveloperThe cart uses a built-in WooCommerce function to output the cart URL:
wc_get_cart_url()
It seems you can filter it:
add_filter( 'woocommerce_get_cart_url', function() { return get_home_url( 'your-cart-page' ); } );
This should help when it comes to adding icons to your menu: https://docs.generatepress.com/article/adding-icons-to-menu-items/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.