Setting custom default block quote and headlines

Hello, today I learned about this formatting for block quotes and headlines and I really like them:

[blockquote cite=“Mr. WordPress” type=“right”]It was the most amazing WordPress theme I had ever seen. Such beauty. Such grace. Such elegance. She was everything I never knew I wanted and so much more. My beloved X will be with me always.[/blockquote]

[custom_headline type=“center” level=“h2” looks_like=“h3” accent=“true”]The Extraordinary Power in a Seed[/custom_headline]

Is it possible to set this style as my default in custom CSS?

Thanks!

Hey There,

Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

Cheers!

Hi there,

I like this style of headline:

http://demo.theme.co/ethos-1/shortcodes/custom-headline/

Can I make that a default headline anytime I choose h2?

I like this block quote in the middle:

http://demo.theme.co/ethos-1/shortcodes/blockquote/

Can I make that happen anytime I click block quote on my editor? Or do I have to use custom code any time I want them?

Thanks!

Hi there,

The shortcode attributes are added though PHP hence, you will still need to add those options. BUT, you can make that default through javascript. Please add this code to your global custom javascript.

jQuery('h2.h-custom-headline').addClass('center-text h3 accent');

And the same styling will be applied on all of your custom headline using h2

Same for the block quote

jQuery('.x-blockquote').addClass('right-text');

Hope this helps.

Yes, it did. Thank you very much!

Glad that we could be of a help :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.