Site logo

Archived topic

before_main_content issue

10 replies · Started by Pedro on April 1, 2019

Viewing posts 1–11 of 11

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:

https://www.dropbox.com/s/98biu075qegxbzg/Captura%20de%20pantalla%20de%202019-04-01%2013-10-00.png?dl=0

The element to which I refer, is: "Free shipping throughout Colombia"

Thank you!

Add 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;
}

<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

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 :D

Is there any place where I can leave my opinion of GP? It can help :)

Hi leo!!

Hahaha I'm sorry! Right now I will leave my review :)

Thanks for the review :)

This archived topic is closed to new replies.