-
usethebitcoin
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 🙂
-
usethebitcoin
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
-
usethebitcoin
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 🙂
- You must be logged in to reply to this topic.