-
AuthorPosts
-
June 11, 2014 at 1:00 pm #277501
Hi Guys,
I am trying to use the code block element to draw a circle. However it appears that whenever I type any CSS code into the code block it just displays it as text, rather than the object I am trying to create.
Do you have any advice on how to use this feature?
Thanks
June 11, 2014 at 1:58 pm #277514Hey nurdwurks!
The code block will just embed the raw code (you inserted into the code block textarea) into the website. I.e. if you insert
<style> .circle { border-radius: 50%; width: 200px; height: 200px; background: #333; /* width and height can be anything, as long as they're equal */ } </style> <div class="circle"></div>
you’ll see a circle like here: http://test.inoplugs.com/code/ – basically it depends on your html/css code how the output will look like.
Best regards,
PeterFebruary 14, 2015 at 2:24 pm #396145HI i try to hide content with this css but it is still shown.
<style>
.post-meta-infos { display:none !important; }
.main_menu { display:none !important; }
.cart_dropdown { display:none !important; }
.visible_cart { display:none !important; }
.avia-menu { display:none !important; }
.html_mobile_menu_tablet .container #advanced_menu_toggle,
.html_mobile_menu_tablet #advanced_menu_hide {display: none;}
</style>February 16, 2015 at 3:43 am #396513Hi!
instead you can use the normal text element to show the code’s results.
Best regards,
AndyFebruary 17, 2017 at 10:27 pm #748669Okay I am running into an issue with the code block not keeping the code the same when you jump from Advanced editor to Default. I have to constantly turn off the advanced editor so the Featured image shows. I was told that is just how it works which is okay with me. But if I have to edit a post switching is altering the Ad Amazon code in a way where is no longer links to the product anymore and just goes to amazon homepage. So basically it is stripping parts out.
February 17, 2017 at 10:38 pm #748675Hey!
As there are many updated through then, please do create a new ticket so we can be able to help you if possible.
Will close the ticket here, so we can have a proper managment of your issue.Thanks a lot
Best regards,
BasilisFebruary 17, 2017 at 10:44 pm #748680Question?
The Code Block still works the same if the Post is saved while in the Default Editor? So far it shows just the shortcode but works fine if the post is saved in the Advanced editor mode.
February 17, 2017 at 11:23 pm #748704Hi!
Please create a new ticket so we can be able to review and even check backend access.
Please create a new ticket for us.Cheers!
Basilis -
AuthorPosts
- The topic ‘How to use code block?’ is closed to new replies.