Support ForumShortcode "Code" – Support Forum https://support.ishyoboy.com/forums/topic/shortcode-code/feed Thu, 26 Dec 2024 20:11:49 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/shortcode-code/#post-3801 <![CDATA[Shortcode "Code"]]> https://support.ishyoboy.com/forums/topic/shortcode-code/#post-3801 Sun, 27 Jul 2014 15:22:08 +0000 georgypoplavsky Hi! What about the possibility of citing code in posts?

]]>
https://support.ishyoboy.com/forums/topic/shortcode-code/#post-3819 <![CDATA[Reply To: Shortcode "Code"]]> https://support.ishyoboy.com/forums/topic/shortcode-code/#post-3819 Mon, 28 Jul 2014 08:32:23 +0000 IshYoBoy Hi georgypoplavsky,

there is no specific shortcode for that because it can be achieved by using default WordPress functionality. Please follow following steps:

1. if you want to use code / pre please add “Text Block” shortcode from the list of all shortcodes in the IshYoBoy Page Builder

2. paste your code into “Visual” tab

3. from drop-down please select “Pre”

Pre / Code

That’s all. Now your code is displayed as “Code”. Please note that there is no special formatting for code / pre. If you would like to have the easiest way is to add extra CSS class to the “Text Block” shortcode and then style this extra class, e.g. .my-code {}.

Hope it will help you
Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>