Tagged: embed html
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.
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