Tagged: x
-
AuthorPosts
-
June 3, 2016 at 3:28 am #1023834
MatthieuParticipantHi there !
I’d like to have a specific CSS for my blog posts.
Indeed, I find the global size of H1 and H2 too big for my posts and I would be pleased to have an other way to show my citations in the text :– H1+H2 : smaller size and the possibility to fine tune the space before and after the title. Please give me the code to add and I will do my own tests to find the size that fits my tastes 🙂
– citations : I would like to have a small indent, a ” icon, text in italics and some space above and after the citationThank you by advance for your help !
June 3, 2016 at 7:29 am #1024071
DarshanaModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
June 3, 2016 at 7:43 am #1024099
MatthieuParticipantThis reply has been marked as private.June 3, 2016 at 1:52 pm #1024593
JadeModeratorHi there,
Please use these CSS selectors and kindly add the CSS rules accordingly:
.single-post h1 { font-size: 25px margin: 0; } .single-post h2 { font-size: 20px; margin: 0; } .single-post .footnotes { padding-left: 15px; margin: 25px 0; font-style: italic; }Hope this helps.
June 3, 2016 at 1:58 pm #1024603
Nabeel AModeratorHi there,
Thanks for providing the credentials. Try this code
.single .entry-title { font-size: 20px !important; } .single .entry-content h1 { font-size: 20px !important; } .single .entry-content h2 { font-size: 20px !important; }Adjust the size as per your need. Cheers!
June 6, 2016 at 6:57 am #1027850
MatthieuParticipantHey there,
Thanks to both of you for your answers.
My apologies, by citation, I meant blockquote…Could you also give me the code for it ?
June 6, 2016 at 8:40 am #1027997
JoaoModeratorI There,
Would you mind providing the url of the page you are using the blockquotes?
Thanks
Joao
June 6, 2016 at 4:08 pm #1028719
MatthieuParticipantYou have an example of blockquote at this page (accessible only with the credentials given earlier) : http://canopee-innovation.com/qui-sommes-nous/pourquoi-la-canopee/
I’d like to have the same font as the rest of my website, another color (#00BCD4), no lines below and above, paddings of 5% left and right.
Thank you for your help !June 7, 2016 at 12:45 am #1029325
FriechModeratorHi There,
Please address all the syntax error on your Custom CSS in Customizer first.
The double slash
( // )is not a valid comments on CSS, It should be/* */.e.g.
/* This is a style for header and footer */And the
@media (max-width: 979px)block is missing the closing bracket, please add the closing bracket.After you’ve done that, you can now add this custom CSS to style your blockquotes.
/* styling for blockquotes */ .singular blockquote { border-width: 0; padding: 0 5%; font-size: 120%; font-style: italic; }Hope it helps, Cheers!
June 7, 2016 at 3:57 am #1029560
MatthieuParticipantPerfect !
Thank you !June 7, 2016 at 7:20 am #1029794
ThaiModeratorYou’re most welcome.
If you need anything else please let us know.
June 9, 2016 at 4:27 pm #1034709
MatthieuParticipantAnother question with blockquotes : can I use the Roboto Slab google font ?
June 9, 2016 at 4:31 pm #1034714
RahulModeratorOf course!
Use the following CSS :
.x-blockquote { font-family: Helvetica; font-size: 24px; color: #000; } .x-blockquote .x-cite { font-family: Helvetica; font-size: 16px; color: #aaa; }Thanks!
June 9, 2016 at 4:35 pm #1034725
MatthieuParticipantI’m confused.
I did not ask for Helvetica but Roboto Slab…
I did tryfont-family: "Roboto slab" ;but that did not work…June 9, 2016 at 8:26 pm #1035001
John EzraMemberHi there,
Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.x-blockquote { font-family: "Roboto Slab",serif; font-size: 24px; color: #000; } .x-blockquote .x-cite { font-family: "Roboto Slab",serif; font-size: 16px; color: #aaa; }Hope this helps – thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1023834 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
