Support » Fixing WordPress » Removing sidebar coding and adding a widget

  • Hi all!

    I’m new here and want to thank everyone in advance for any help they can offer. We’ve had a website developed and I have pretty much taken over it and am making a few changes here and there. I have been able to alter all pages with the use of plugins but the homepage is a layout/design that I can’t change without altering the coding. You will see on the homepage that there is a section on the left that says “Send a quick inquiry”. I would like to alter the text keeping the same formatting but make it say “Search Availability”. Under that I would like to install a widget from the reservation software I’m using. Could anyone help me with the coding here? There used to be a Gravity Form field here and the entire homepage is created with Advanced Custom Fields. Here is the coding that I believe pertains to the “Send a quick inquiry”

    <?php get_header(); ?>
    <div class="home-slider-container">
                						<ul class="home-slider">
                                         <?php     while ( have_rows('homepage_slider') ) : the_row(); ?>
                                            	<img />" alt="" title="" />
                                         <?php endwhile; ?>
    <div class="slideroverlay">
    <img />/images/slideroverlay.png" alt="slideroverlay"/>
    <section id="content" class="sectionfirst">
    		<div class="container">
    			<div class="row clearfix">
                	<div class="col-md-4">
                    <div class="contactformoutertitle">
                    <h3 class="contactformtitle">Send A <span>Quick Inquiry </span></h3>
        								$form = get_field('choose_contact_form');
       									 gravity_form_enqueue_scripts($form->id, true);
       									 gravity_form($form->id, false, false, false, '', true, 1); 
                    <div class="meet-the-owner">
    						<div class="home-widget">
    							<a>" class="hover-wrap clearfix">
    								<span class="icon owner">
    									<img />">
    								<span class="heading"><?php echo get_field('meettheownertitle'); ?><br><?php echo get_field('owner_name'); ?></span>
    								<span class="arrow"></span>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you want to show Gravity form in that place ? If so, you might have created any form in backend. Shortcode has been generated in the backend that you can directly place at your location.

    To display shortcode, use do_shortcode function. Say for example :

    <?php echo do_shortcode('[gravityform id=1 title=false description=false ajax=true tabindex=49]'); ?>

    You need to replace id with the existing ID that you need to display here.
    Let me know if that works for you.

    Thanks for the recommendation! I’m not looking to replace it with a Gravity Form but instead a widget for a property booking software I’m now using. Could I install a widget within a gravity form making your above coding work?



Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing sidebar coding and adding a widget’ is closed to new replies.