Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #277514

    Hey 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,
    Peter

    #396145

    HI 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>

    #396513

    Hi!

    instead you can use the normal text element to show the code’s results.

    Best regards,
    Andy

    #748669

    Okay 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.

    #748675

    Hey!

    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,
    Basilis

    #748680

    Question?

    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.

    #748704

    Hi!

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to use code block?’ is closed to new replies.