I cant edit one page of my website. The page seems to be stuck in safe mode maybe and I can see the shortcodes but cannot edit content. The rest of my site seems fine.
Hey 118group,
Thanks for the login details. On which page are you having this problem?
Best regards,
Rikard
Hi,
Thanks for that. The code in the code block element seems to be breaking the layout, could you share the code you are adding in that element please?
Best regards,
Rikard
Hi,
Thank you for the update.
You cannot directly add form tags such as input, textarea or label elements to the advance layout builder because the element that contains the actual builder shortcodes is also a textarea element. Using these tags will break the advance layout builder. You will have to create a custom shortcode for the contact form and use that shortcode instead. Please check this documentation for more info.
// https://codex.wordpress.org/Shortcode_API
Example:
// custom web salesforce contact form shortcode
function avs_web_salesforce_cf_shortcode_cb( $atts ){
$output = "something";
$output .= "something";
$output .= "the contact html here";
return $output;
}
add_shortcode( 'avs_web_salesforce_cf_shortcode', 'avs_web_salesforce_cf_shortcode_cb' );
You can then use the shortcode in a code or text block element.
[avs_web_salesforce_cf_shortcode]
Best regards,
Ismael