CSS for shortcodes
-
Hello
I have a problem with my website, I have tiles on some of my pages with the use of shortcodes. But on some pages the images of those shortcodes look really out of place.
I contacted the WordPress LiveChat and they told me to make a post here.
Can someone help me out with a CSS code?Thanks in advance
QuintenThe blog I need help with is: (visible only to logged in users)
-
Hi @instituutjjolie,
Can you provide a link to the page, so that we can look at it as an example and provide you with an appropriate code?Thanks! :)
-
This is one of the pages where I have this problem: https://instituutjjolie.com/portfolio/gelaatsverzorging/
-
There this CSS code:
img.size-big, .wp-caption.caption-big { display: inline-block; float: none; margin-left: -145px; // this one margin-bottom: 1.5556em; max-width: 1000px; }which is shifting the images to the left.
So to solve this, add this CSS code:
img.size-big { margin-left: 0px; }to the CSS Edtior.
Let us know if it helps :)
-
@otpidusprime That works perfectly, thank you!
Is there also a way to change the font size of the shortcode text with CSS?
Thanks again :)
-
@otpidusprime That works perfectly, thank you!
Is there also a way to change the font size of the shortcode text with CSS?
Thanks again :)
-
Yeah there is,
Use this CSS code to:
1. To change the font-size of the portfolio title:.portfolio-entry-title { font-size: 1em; }2. To change the font-size of the portfolio author:
.project-author { font-size: 0.9em; }Hope this helps :)
-
-
- The topic ‘CSS for shortcodes’ is closed to new replies.