Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can't find mistake in widget code!
Tagged: HTML Error
- This topic has 8 replies, 3 voices, and was last updated 6 years, 11 months ago by PageH.
-
AuthorPosts
-
May 31, 2017 at 10:18 am #207223PageHMember
Hi there,
I'm using some code to create two columns in a home page widget, and a little arrow keeps showing up. I cannot for the life of me figure out how to get rid of it! I've attached a screenshot and here's the code I'm using, and if you visit the URL and scroll to the "Our Services" section, you'll see the arrow right above the subheading "Vacation Property Support":
<p>Call (406) 570-7270 today.
We look forward to helping you.</p><<div class="one-half first">
<h4>Home Inspections</h4>
<p>We offer pre-sale and home purchase property inspections that help to identify any potential problems with the home to help you make the right decisions moving forward.</p>Book Now
</div><div class="one-half">
http://newwesthomeservices.com/
<h4>Vacation Property Support</h4>
<p>We offer comprehensive, preventive home services that bring peace of mind. We help to recognize & address potential problems before they arise through our inspections & property care services.</p>May 31, 2017 at 10:24 am #207224Brad DaltonParticipantMay 31, 2017 at 11:11 am #207226PageHMemberOk....so the answer is???
I used this elsewhere in another site and it's working just fine.May 31, 2017 at 11:12 am #207227Brad DaltonParticipantCheck the HTML for a broken tag.
This looks broken.
<<div class="one-half first">
May 31, 2017 at 11:54 am #207230Victor FontModeratorI don't think the error is in your widget code. I would look at front-page.php, specifically at the code that generates home-section home-intro widget-area. When I view your source code, there is an extra closing div tag right before the closing section tag. You didn't mention which theme you are using, but I think you'll see three closing div tags in the widget area code when there should only be two.
<div class="home-section home-intro widget-area"> <div class="wrap"> <section id="text-2" class="widget widget_text"> <div class="widget-wrap"> <div class="textwidget"> <h4>Choose New West</h4> <p>We offer comprehensive, preventive home services that bring peace of mind. We help to recognize & address potential problems before they arise through our inspections & property care services.</p> <a class="button" href="http://newwesthomeservices.com/about/">Why We're Different</a> </div> </div> </div> </section> </div> </div>
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?June 1, 2017 at 8:37 am #207256PageHMemberVictor, your answer was clear and comprehensive, thank you!!!
I'm not seeing three closing div tags, here's the code for the front-page.php, and I'm using Remobile Pro:
}
}//* Add markup for homepage widgets
function remobile_homepage_widgets() {genesis_widget_area( 'home-intro', array(
'before' => '<div class="home-section home-intro widget-area"><div class="wrap">',
'after' => '</div></div>',
) );genesis_widget_area( 'home-pricing', array(
'before' => '<div class="home-section home-pricing widget-area"><div class="wrap">',
'after' => '</div></div>',
) );genesis_widget_area( 'home-features', array(
'before' => '<div class="home-section home-features widget-area"><div class="wrap">',
'after' => '</div></div>',
) );genesis_widget_area( 'home-social', array(
'before' => '<div class="home-section home-social widget-area"><div class="wrap">',
'after' => '</div></div>',
) );}
genesis();
June 3, 2017 at 5:57 am #207296Victor FontModeratorI would check the text of that first widget then. You definitely have an extra closing div in the first text widget that's sending everything else haywire down the line. I can't tell you anything else from the front end.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?June 3, 2017 at 6:27 am #207298Brad DaltonParticipantJune 5, 2017 at 11:02 am #207357PageHMemberBRAVO! And thanks to both of you, it is fixed!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.