- This topic has 11 replies, 4 voices, and was last updated 3 years, 2 months ago by Ying.
-
AuthorPosts
-
January 27, 2021 at 7:57 pm #1636378Jean
Hi!
I am creating my own “generate before logo hook” in Elements using Generate Blocks.
This hook contains a short menu, social icons and search bar.
I have set all of the widths to be “full width” – including the container.However, when I go to the WordPress Appearance- Customize Page, the hook is not full width and has been smashed into the center. On the Appearance- Customize Page, I have everything set to full width as well. However, since my logo needs to be centered, I have the header alignment customization set to “Centered.” This has moved everything to the center and my hook is not taking up the width like how I made it in Elements using a full width container.
Please advise and thank you!
JeanJanuary 27, 2021 at 10:16 pm #1636440ElvinStaffCustomer SupportHi,
I’m not sure I get the whole picture.
Can you link us to the site in question? So we could check for the best solution to address the issue.
You can use the private information text field to provide the site details. Thank you.
Note: We don’t offer support via phone, unfortunately.
January 28, 2021 at 1:00 pm #1637478JeanThank you for the reply. Could I get an email address so I can create a new user for you?
January 28, 2021 at 1:31 pm #1637514LeoStaffCustomer SupportYou can use support@generatepress.com
January 28, 2021 at 1:46 pm #1637539JeanThank you!
-I would like my “generate before logo hook” in elements to not be smashed together in the middle- I would like it to look more like the widgets I have in place in the top bar where it takes the full width of the page. (The top bar is just an experiment and that is why it is still there).
-I would like my search bar to not have a border around itThank you very much for your help with this!!
January 28, 2021 at 7:08 pm #1637659ElvinStaffCustomer SupportThank you for providing the details.
-I would like my “generate before logo hook” in elements to not be smashed together in the middle- I would like it to look more like the widgets I have in place in the top bar where it takes the full width of the page. (The top bar is just an experiment and that is why it is still there).
For starters, Let’s try to use as less containers as possible.
You could simply use a single Grid Block instead of multiple column and container blocks.
Your Block container seems to be structured like this – https://share.getcloudapp.com/BluYyJlj – which can be a pain to manage.
With GenerateBlock’s Grid Block, you can simplify it to this:
https://share.getcloudapp.com/WnuB4dOxAnd this is saves us some time because you don’t have to write CSS “un-squish” the block contents because the Grid Block automatically goes 100% width of its container.
-I would like my search bar to not have a border around it
We can remove the default border WordPress adds by adding this CSS:
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper { border: none; }
January 28, 2021 at 8:31 pm #1637687JeanElvin,
Thank you! So I redid the hook using Grid Blocks, and it is still smashed. Is there something I’m doing wrong?
Also, where do I put the CSS to remove the search box border? 🙂Thanks again,
JeanJanuary 28, 2021 at 9:19 pm #1637701ElvinStaffCustomer SupportIn that case, you can add a CSS class
fullwidth-grid
to the grid block and add this CSS:.fullwidth-grid { width: 100%; }
Here’s how to add CSS: https://docs.generatepress.com/article/adding-css/
January 29, 2021 at 11:37 am #1638735JeanThank you!
I have Simple CSS and added the CSS to the Appearance – Customize Page.
It worked for taking the border off the Search Bar (thanks!!).
But, it did not work for taking the container full width in the hook in elements.
I also tried adding it to the Additional CSS in the element itself, but still no change.Thanks for your help with this,
JeanJanuary 29, 2021 at 5:26 pm #1638921YingStaffCustomer SupportHi Jean,
Just to make sure you have added the custom CSS class to the grid block that you want it to be full width.
If not, it can be added here:
https://www.screencast.com/t/X2eXv4jVc
Let me know 🙂January 30, 2021 at 12:11 pm #1639843JeanThanks! The screen shots are so helpful.
I figured out the problem. I had my hook as “generate before logo.” I changed it to “generate before header” and it is full width now. Thanks so much.January 30, 2021 at 12:18 pm #1639847YingStaffCustomer SupportHi Jean,
Sorry I didn’t specify previously, there’s no
.
before thefullwidth-grid
when adding it to Additional CSS class(es). Could you try again? Thanks! -
AuthorPosts
- You must be logged in to reply to this topic.