- This topic has 9 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 12, 2023 at 8:00 am #2493026
Tim
Hi. I have a child theme, on which I have embedded a wp form. That works fine, but it’s 100% wide, so I wanted to add columns or a grid to the theme file. Following is a pseudo-code representation of what I’m trying to do. I don’t know what the html would be to leverage the GP grid:
<?php echo do_shortcode(“[wpforms id=’200′]”); ?>January 12, 2023 at 8:01 am #2493032Tim
oh, your forum dropped my html. let me try again, using the codeblock:
<div class="twentyfivepercent"> </div> <div class="fiftypercent"><?php echo do_shortcode(“[wpforms id=’200′]”); ?></div> <div class="twentyfivepercent"> </div>January 12, 2023 at 9:19 am #2493148David
StaffCustomer SupportHi there,
If you get stuck , share a link to where we can see it on your site and we will take a look
January 28, 2023 at 7:36 am #2511979Tim
Thanks, David. I was doing some other stuff for a bit there, but I still have the issue. I’d like to make the form less wide, using code in a php template file. Below is a link to a page where the wide form is displayed and below that, is the page template code as-is.
http://perischwartz.timthorp.com/artwork/bottles-jars-xxxvi-2014-22×36/
<div <?php generate_do_attr( 'content' ); ?>> <main <?php generate_do_attr( 'main' ); ?>> <div class="artwork"> <?php /** * generate_before_main_content hook. * * @since 0.1 */ do_action( 'generate_before_main_content' ); if ( generate_has_default_loop() ) { while ( have_posts() ) : the_post(); generate_do_template_part( 'single' ); endwhile; } if (get_field('location') == 'NAGA'){ //naga form echo "<h2>Inquire with the Schwartz Estate (text TBD)</h2>"; echo do_shortcode("[wpforms id='886']"); }else{ //general for sale form echo "<h2>Inquire with Gallery NAGA (text TBD)</h2>"; echo do_shortcode("[wpforms id='200']"); } /** * generate_after_main_content hook. * * @since 0.1 */ do_action( 'generate_after_main_content' ); ?> </div> </main> </div>January 28, 2023 at 7:49 am #2512033David
StaffCustomer SupportCan you confirm that URL ? as it is 404ing for me
January 28, 2023 at 8:25 am #2512181Tim
Thanks. This is kinda odd, but for some reason the link works, except that somewhere, the “x” in the url is transformed into a shorter x. I’ll paste the link as code to see if it helps.
http://perischwartz.timthorp.com/artwork/bottles-jars-xxxvi-2014-22x36/January 28, 2023 at 8:26 am #2512182Tim
just to double check if I can recreate the issue, I’ll paste the url here:
http://perischwartz.timthorp.com/artwork/bottles-jars-xxxvi-2014-22×36/
January 28, 2023 at 10:10 am #2512254David
StaffCustomer SupportHow odd is that lol – i got there 🙂
I would use some CSS like this:
.artwork .wpforms-container { max-width: 600px; }January 28, 2023 at 11:20 am #2512287Tim
wow. that was easy! I gotta learn flex so that this makes more sense. Thanks, David!
January 29, 2023 at 4:14 am #2512808David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.