Title: Removing sidebar coding and adding a widget
Last modified: April 5, 2018

---

# Removing sidebar coding and adding a widget

 *  [luelf21](https://wordpress.org/support/users/luelf21/)
 * (@luelf21)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/need-help-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(); ?>
                                             	<li>
                                               	<img />" alt="" title="" />
                                               </li> 
                                            <?php endwhile; ?>
   
                                           </ul>
   
       <div class="slideroverlay">
       <img />/images/slideroverlay.png" alt="slideroverlay"/>
       </div>              
       </div>
       <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>
                       </div>
                       <?php 
           								$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>
       								<span class="heading"><?php echo get_field('meettheownertitle'); ?><br><?php echo get_field('owner_name'); ?></span>
       								<span class="arrow"></span>
       							</a>
       						</div>
   
       					</div>
                       </div>
       ```
   
    -  This topic was modified 8 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
    -  This topic was modified 8 years, 2 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fneed-help-removing-sidebar-coding-and-adding-a-widget%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [anurag.deshmukh](https://wordpress.org/support/users/anuragdeshmukh/)
 * (@anuragdeshmukh)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/need-help-removing-sidebar-coding-and-adding-a-widget/#post-10148586)
 * 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.
 *  Thread Starter [luelf21](https://wordpress.org/support/users/luelf21/)
 * (@luelf21)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/need-help-removing-sidebar-coding-and-adding-a-widget/#post-10150328)
 * 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?
 * Thanks,
 * Kendall

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Removing sidebar coding and adding a widget’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [luelf21](https://wordpress.org/support/users/luelf21/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/need-help-removing-sidebar-coding-and-adding-a-widget/#post-10150328)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
