Home › Forums › Basel support forum › Strange black strip in header
Strange black strip in header
- This topic has 21 replies, 2 voices, and was last updated 4 years, 9 months ago by Elise Noromit.
-
AuthorPosts
-
July 1, 2019 at 8:10 am #130787
fiodorParticipantHi,
I’m having a strange bug in header https://screencast.com/t/YSFUlgjxc. It’s a black strip and don’t know from where it came. See video here https://screencast.com/t/eiOqX7E44F6
Using Chrome on mac 75.0.3770.100 (Official), (64 bit). In Safari it’s ok and Mozilla is not ok too.
Please help to fix it
July 1, 2019 at 9:47 am #130802
Elise NoromitMemberHello,
Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue, if the problem remains, leave the plugins not activated for us to check
Best Regards
July 1, 2019 at 10:31 am #130809
fiodorParticipantJust figured out that the problem being caused by sticky footer feature. When I turn it off the bug is gone.
July 1, 2019 at 10:33 am #130810
fiodorParticipantAnd I’ve tried to deactivate other plugin and switch to the parent theme – nothing works.
July 1, 2019 at 1:46 pm #130831
Elise NoromitMemberHello,
You need set the background on the header https://gyazo.com/6cfbcc7110dc3f5c8f03518816340056
Now your header is transparent. You can do it in the Theme Settings > Header > Appearance http://prntscr.com/o92ayr
Best Regards
July 1, 2019 at 8:01 pm #130883
fiodorParticipantWonderful, thank you!
How do I make now the main page header only transparent like in your demo https://demo.xtemos.com/basel/home-fashion-new/?
July 2, 2019 at 7:23 am #130945
fiodorParticipantAnother thing:
Doesn’t work the feature – when text in the header is empty field in theme settings is empty and I’m trying to use the widget for this – https://screencast.com/t/MDJiPxZc33KIt doesn’t appear at all
July 2, 2019 at 9:43 am #130958
Elise NoromitMemberHello,
What do you want to add to the Header? HTML code would not work.
Best Regards
July 2, 2019 at 10:18 am #130962
fiodorParticipant1 – How do I make now the main page header only transparent like in your demo https://demo.xtemos.com/basel/home-fashion-new/?
2 – I want to add the same text as I have now in top left bar, but via widget (in order to be translatable with wp multilang plugin)
July 2, 2019 at 11:15 am #130974
Elise NoromitMemberHello,
The header layout which you have set does not assume the header widget. You need to set Bas, Logo Center or Menu in Top bar layout.
In order to make the header transparent, enable the option in the Theme Settings > Header > Appearance http://prntscr.com/o9hvk7
Best Regards
July 2, 2019 at 12:28 pm #130992
fiodorParticipantTrying to change header settings but nothing works. Are you working there?
I didn’t touch a think but it’s seems to be broken nowJuly 2, 2019 at 4:06 pm #131036
Elise NoromitMemberHello,
I did not touch anything. Just set the configuration which you have before.
Best Regards
July 8, 2019 at 12:22 pm #131798
fiodorParticipantDon’t know why I can’t post a new topic so I’m writing it here.
1 – My ajax cart doesn’t work anymore. Page reloads after I put something in basket. The ajax hsop is ON in Theme settings. Could you take a look, please?
2 – where i can find the text of this placeholder to be translated https://screencast.com/t/7htT0wnrx? Loco translate does not translate it at all.
Thanks
July 8, 2019 at 1:31 pm #131811
Elise NoromitMemberHello,
Please deactivate all the plugins not related to the theme and check the issue with typography.
Please follow the steps to get the fix:
1. Please upload the file from this link: https://drive.google.com/file/d/17pRyCpJdReyl_wWyoTduwTUoQQqLkvGT/view?usp=sharing
2. Upload it into this folder deleting the previous one wp-content\themes\basel\languages\basel.pot
3. Find this file wp-content\themes\basel\inc\template-tags.php and replace the code shown on the screen: http://prntscr.com/o2s9ji
basel_header_block_search_extended() switch ( $search_post_type ) { case 'product': $placeholder = esc_attr_x( 'Search for products', 'basel' ); $description = esc_html__( 'Start typing to see products you are looking for.', 'basel' ); break; case 'portfolio': $placeholder = esc_attr_x( 'Search for projects', 'basel' ); $description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' ); break; default: $placeholder = esc_attr_x( 'Search for posts', 'basel' ); $description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' ); break; } switch ( $search_post_type ) { case 'product': $placeholder = esc_attr_x( 'Search for products', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see products you are looking for.', 'basel' ); break; case 'portfolio': $placeholder = esc_attr_x( 'Search for projects', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' ); break; default: $placeholder = esc_attr_x( 'Search for posts', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' ); break; }
Synchronize the translations.
Best Regards
July 8, 2019 at 1:54 pm #131816
fiodorParticipantPlease deactivate all the plugins not related to the theme and check the issue with typography.
You mean with ajax, the first one?
July 8, 2019 at 2:09 pm #131819
fiodorParticipantWhen I try to edit the file wordpress gives me an error:
https://screencast.com/t/d7bCG6IMQE
“The site has a technical problem. Please check your admin email inbox for further instructions.”I’m replacing the code you highlighted by the code
basel_header_block_search_extended() switch ( $search_post_type ) { case 'product': $placeholder = esc_attr_x( 'Search for products', 'basel' ); $description = esc_html__( 'Start typing to see products you are looking for.', 'basel' ); break; case 'portfolio': $placeholder = esc_attr_x( 'Search for projects', 'basel' ); $description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' ); break; default: $placeholder = esc_attr_x( 'Search for posts', 'basel' ); $description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' ); break; } switch ( $search_post_type ) { case 'product': $placeholder = esc_attr_x( 'Search for products', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see products you are looking for.', 'basel' ); break; case 'portfolio': $placeholder = esc_attr_x( 'Search for projects', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' ); break; default: $placeholder = esc_attr_x( 'Search for posts', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' ); break; }
When I get back the previous version code it works fine.
July 8, 2019 at 2:11 pm #131820
fiodorParticipantE_PARSE in string 1377 of the file /home/adesartc/public_html/wp-content/themes/basel/inc/template-tags.php. Error message: syntax error, unexpected ‘switch’ (T_SWITCH)
July 9, 2019 at 7:32 am #131904
Elise NoromitMemberHello,
1 – My ajax cart doesn’t work anymore. Page reloads after I put something in basket. The ajax hsop is ON in Theme settings. Could you take a look, please?
Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue.
2 – where i can find the text of this placeholder to be translated https://screencast.com/t/7htT0wnrx? Loco translate does not translate it at all.
You are using WP Multilang plugin, please refer the documentation of the plugin or contact their support. Loco is not destined for multilingual sites, it translates a single language plugins and themes
Best Regards
July 9, 2019 at 1:57 pm #131982
fiodorParticipant1 – ok, the reason is in another plugin. Solved.
2 – Loco is being used to translate the theme and it’s not related to wp multilang and it works well with multilang so far. Please tell me in what file I can find the label of the placeholder.
Thanks
July 10, 2019 at 8:12 am #132075
Elise NoromitMemberHello,
I have fixed the issue. Please check.
Best Regards
July 10, 2019 at 8:14 am #132076
fiodorParticipantPerfect! Thank you!
Gonna give a good feedback to your team and theme, good job!👍🏻
July 10, 2019 at 8:19 am #132077
Elise NoromitMemberWe shall appreciate highly. Thanks. If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘Strange black strip in header’ is closed to new replies.
- You must be logged in to create new topics. Login / Register