Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Inside container – insert a special class

  • Hi,

    I added a social share buttons which I watched in youtube for generatepress. I used the hook element then generate it before content, then set the social-share wrapper to sticky, since if I use fixed it will go upto the footer. But my problem is, when I set inside post container padding-left to 40px so the social share would have some space on it’s right side. But with that it will also affect our homepage design, so the inside container class was used also in our homepage.

    Is there any other way to insert a class name for post contents? For me to adjust it’s padding to left. Or is there any way to make the social share sticky have some space on it’s right side. I have placed the margin and padding on socialshare wrapper but it shrinked the container.

  • Hi there,

    Not sure I understand the issue, can you share a mockup of what you want?

    Let me know 🙂

  • Hi Ying,

    Pls check this screenshot.

    https://ibb.co/1zShtsy – its called inside-article class I want to add some padding-left but when I added that to the css in the homepage it affects this part https://ibb.co/5TFNqYM the padding I applied in inside-article class appplied here also.

    So this is the floating social share buttons and I like it to have a spacing with the inside-article.
    https://ibb.co/R4cwsKD

  • Oh I see, you can use this sector for your CSS .single-post .inside-article

  • I have tried this before .inside-article but it affects one section on the homepage this two should be together when setting a padding on it .single-post .inside-article and it worked! I checked the homepage and everything was normal.

    Thanks Ying for helping!

  • You are welcome   🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.