- This topic has 10 replies, 2 voices, and was last updated 3 years, 12 months ago by
Leo.
-
AuthorPosts
-
April 1, 2019 at 10:10 am #856114
Pedro
Hello! I just added a hook in ‘before_main_content’
And I noticed that in the desktop version, this element is shown before the content, however, for the sidebar it does not.
I would like this new element to be shown before the content, as well as the sidebar.
Below you can see a screenshot:
The element to which I refer, is: “Free shipping throughout Colombia”
Thank you!
GeneratePress 2.2.2GP Premium 1.7.8April 1, 2019 at 11:59 am #856183Leo
StaffCustomer SupportHi there,
Would the
inside_container
hook work better?
https://docs.generatepress.com/article/hooks-visual-guide/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 1, 2019 at 2:56 pm #856300Pedro
Hi leo!!
If it remains before both sections, however, it is very close with the main menu.
You can see here: https://www.dropbox.com/s/23smv8ivporotec/Captura%20de%20pantalla%20de%202019-04-01%2017-55-35.png?dl=0
Is there a way to fix it?
April 1, 2019 at 3:08 pm #856305Leo
StaffCustomer SupportAdd your content like this:
<div class="inside-container-message">My mesage</div>
Then this CSS:
.inside-container-message { padding-top: 20px; } .inside-container-message p { margin-bottom: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 1, 2019 at 3:19 pm #856310Pedro
Hello Tom!
I added the code and it works, but now at the bottom it adds more space and is uneven.
I would like that in upper space like the lower one was equal (like 20px)
You can see how it was here: https://www.dropbox.com/s/8jrqn2ki73o5pc0/Captura%20de%20pantalla%20de%202019-04-01%2018-19-09.png?dl=0
What should I do?
April 1, 2019 at 3:20 pm #856311Pedro
<div class="inside-container-message"><p style="text-align:center">EnvΓo gratis a toda Colombia <img src="https://www.rebajaslocas.com/wp-content/uploads/2019/03/colombia-flag.png" alt="" class="wp-image-216" width="18" height="12"/></p></div>
It’s the hook code
April 1, 2019 at 3:24 pm #856312Leo
StaffCustomer SupportI’m Leo π
Edited the CSS here:
https://generatepress.com/forums/topic/before_main_content-issue/#post-856305Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 1, 2019 at 3:32 pm #856316Pedro
Hello Tom!
It worked wonders! Thank you.
The truth to move to GeneratePress has been the best I could do. I’m moving all my sites to GP and I’m looking forward to the new version of 1.8 π
Is there any place where I can leave my opinion of GP? It can help π
April 1, 2019 at 3:35 pm #856317Leo
StaffCustomer SupportI’m Leo π
You can leave us a review here:
https://wordpress.org/support/theme/generatepress/reviews/Thanks!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 1, 2019 at 3:47 pm #856322Pedro
Hi leo!!
Hahaha I’m sorry! Right now I will leave my review π
April 1, 2019 at 5:08 pm #856367Leo
StaffCustomer SupportThanks for the review π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.