Home › Forums › WoodMart support forum › control/expand header item length width ?
control/expand header item length width ?
- This topic has 10 replies, 2 voices, and was last updated 2 years, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
November 18, 2022 at 4:56 pm #422103
qtwrk555ParticipantHi,
since I need to make search works on variable product , so I found a search plugin , which it works
only problem I have now is to integrate it with woodmart
I edit the header , it shows up , but in narrowed width as my screenshot
which is ugly , how can I extend it and make it to display same way as default search box does ?
it was added by HTML block + plugin’s shortcode
when I view the HTML block individually , it does display a lot of longer than it embedded into header
best regards,
Attachments:
You must be logged in to view attached files.November 19, 2022 at 9:26 am #422194
Aizaz Imtiaz AwanKeymasterHello,
Sorry to say but as far as we are viewing your Site right now, it is showing the Search as Full Width: https://ibb.co/s96sbSX
So, we can’t seem to find any issues with that on your Site.
Please check back your Site after completely clearing the browser and server cache.
Best Regards
November 19, 2022 at 12:35 pm #422219
qtwrk555ParticipantHi,
please check my screenshot 1 , this is how I create the HTML block , as shortcode
and screenshot 2 , show how it displays individual , that searchbox is fully extended
in screenshot 3 , you can see the theme default searchbox , it displays from left-side logo , all the way reaches the right side “my-account” button , this is good
now please check screensshot4 , I replace the “search” to custom HTML block in screenshot 1
then please check screenshot 5 , the searchbox , in frontend page , only display a little since the left-side logo , leave a huge chunk of blank area
so my question is how to extend that searchbox all the way to the right-side my account button , as default searchbox does.
November 19, 2022 at 2:56 pm #422236
Aizaz Imtiaz AwanKeymasterHello,
Could you please once add the HTML Block under your Header for the time being and then mention us so that we can check and provide you the Custom CSS to increase the Width (if possible or applicable).
Best Regards
November 19, 2022 at 3:13 pm #422243
qtwrk555ParticipantHi,
thanks, I have done as requested
also provided login info on private content , this is dev site, please feel free to do whatever that is you need to do
best regards,
November 19, 2022 at 3:45 pm #422249
Aizaz Imtiaz AwanKeymasterHello,
The issue on your Site is now adjusted with the help of the following Custom CSS applied:
This CSS was applied was in Global Custom CSS:
.whb-column.whb-col-center.whb-visible-lg { display: grid !important; }
And this CSS was applied in Custom CSS for mobile:
.whb-column.whb-col-center.whb-visible-lg { display: none !important; }
Location to find Custom CSS, go to Dashboard >> Theme Settings >> Custom CSS >> there check the Global CSS section and Custom CSS for mobile.
Best Regards
November 19, 2022 at 6:31 pm #422266
qtwrk555ParticipantHi,
thanks for help , this works
I only got one problem left
how can I “hijack” mobile view search box in the header ?
November 19, 2022 at 10:53 pm #422288
qtwrk555Participantor hijack/redirect the search query string from current
/?s=something&post_type=product
to search plugin specific one as
/?s=something&search_id=1&post_type=product
is there any add_filter kind of stuff I can use for this purpose ? maybe directly edit source code ?
November 21, 2022 at 10:53 am #422432
Aizaz Imtiaz AwanKeymasterHello,
Sorry but there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope. Hope you can understand our limitations.
Best Regards
November 21, 2022 at 10:56 am #422438
qtwrk555ParticipantHi,
thanks, luckily I was able to work around it
in case anybody else hit same issue as I did , here is my solution :
since my goal is to make
/?s=something&post_type=product
to become
/?s=something&search_id=1&post_type=product
then I come up a rewrite rule
RewriteCond %{QUERY_STRING} s=(.*)&post_type=product RewriteRule .* /\?s=%1&search_id=1&post_type=product [L]
that will grab the
s=xxx
item , then rewrite it to the desgianted URL with%1
as back referenceNovember 21, 2022 at 3:58 pm #422564
Aizaz Imtiaz AwanKeymasterHello,
We are glad that you were able to find a workaround for that and Thank You very much for sharing the solution here with all. We appreciate that !
Thanks for contacting us.
Have a great day !Topic Closed.
Best Regards -
AuthorPosts
The topic ‘control/expand header item length width ?’ is closed to new replies.
- You must be logged in to create new topics. Login / Register