Home › Forums › Basel support forum › Add login/register
Add login/register
- This topic has 3 replies, 2 voices, and was last updated 4 years, 3 months ago by Elise Noromit.
-
AuthorPosts
-
January 11, 2020 at 5:03 pm #167486
matte.marParticipantHi there,
The login/register field disappeared form the header. It’s active in the theme options and I don’t now why it isn’t showing the ‘login / register’ next to the cart icon anymore while it’s showing in the mobile menu. Could you please help me with it?
Once fixed, is there a way to replace the writing ‘login / register’ with an icon similar to this one https://cdn5.vectorstock.com/i/1000×1000/04/09/user-icon-vector-5770409.jpg
I’ve attached an image edited in photoshop for you to understand what result I’m trying to get.Thank you.
Attachments:
You must be logged in to view attached files.January 11, 2020 at 7:49 pm #167492
Elise NoromitMemberHello,
You could change the Header layout and not all the layouts have the My Account element. https://prnt.sc/qmd8qm
You can add it manually placing the following code snippet to the functions.php file in the child theme.
add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 ); function basel_custom_header_configuration() { return array( 'container' => array( 'wrapp-header' => array( 'logo', 'widget_area', 'right-column' => array( 'header_links', 'search', 'wishlist', 'cart', 'mobile_icon', ) ) ), 'navigation-wrap' => array( 'container' => array( 'main_nav' ) ) ); }
You can set text or icon in the Theme Settings > Header > My account links
Best Regards
January 11, 2020 at 9:07 pm #167497
matte.marParticipantHi there, I’ve managed to add it in my current header editing the code provided. I’ve attached the code below.
The problem is that the sticky header now is not showing the ‘login/register’ label. Could you please help? Thanks
add_filter( ‘basel_header_configuration’, ‘basel_custom_header_configuration’, 1, 1 );
function basel_custom_header_configuration() {
return array(
‘container’ => array(
‘wrapp-header’ => array(
‘logo’,
‘main_nav’,
‘right-column’ => array(
‘header_links’,
‘cart’,
‘mobile_icon’,
)
)
),
‘navigation-wrap’ => array(
‘container’ => array(
”
)
)
);
}January 12, 2020 at 9:51 am #167515
Elise NoromitMemberHello,
Please clean the cache browser and check again I see the log in/register on the sticky header.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register