Adding a form via shortcode in my theme breaking page layout

By: Naomi Spirit | Asked: 11/29/2023
ForumsCategory: How-toAdding a form via shortcode in my theme breaking page layout
Naomi SpiritNaomi Spirit asked 12 months ago
$str .= do_shortcode("[formidable id=".tw_get_signupformID()." minimize='1']"); echo $str; Adding a form within a column of my website and it's breaking the page layout, it's not immediately obvious as to why. Layout only broken with that shorcode written out. Styles are turned off form. The form width is smaller than the available space.
1 Answers
Best Answer
Victor Font answered 12 months ago
You're adding a form in a PHP snippet incorrectly. The details for publishing a form through PHP is in this KnowledgeBase article: https://formidableforms.com/knowledgebase/publish-a-form/#kb-php-alternative
Victor Font replied 12 months ago

Many Formidable shortcodes have PHP equivalents when writing custom code. Make sure you check the KnowledgeBase for the developer alternatives.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right