Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #573291

    Hi there, I am trying to use a Code Block on a page. When I take the embed code directly from a Zoho form, after I save the page, the page editor becomes messed up. See Private content for screenshot and login info.

    I also tried using just the normal WP editor, and it seems to work, but then I can’t get the heading and other blocks in – I did try using shortcodes, but couldn’t get the title image area to be full-width. I can email you the shortcodes I was trying to use if needed.

    #573324

    Hey!

    I’d suggest you using a custom shortcode for this, something like this in your theme / child theme functions.php:

    function custom_shortcode_func() {
    	ob_start();
    	?>
    		PUT YOUR CODE HERE
    	<?php
    
    	$output = ob_get_clean();
        return $output;
    }
    add_shortcode('my_shortcode', 'custom_shortcode_func');

    Then you’d use [my_shortcode].

    Cheers!
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.