How to add a heading above blog posts in Front Page 2 section of Wellness Pro

Looking to add a heading text like “Our Latest Blog Posts” above the four widgets in the Front Page 2 widget area of Wellness Pro?

Follow these steps.

Step 1

In front-page.php change

genesis_widget_area( 'front-page-2', array(
    'before' => '<div id="front-page-2" class="front-page-2"><div class="flexible-widgets widget-area' . wellness_widget_area_class( 'front-page-2' ) . '"><div class="wrap">',
    'after'  => '</div></div></div>',
) );

to

genesis_widget_area( 'front-page-2', array(
    'before' => '<div id="front-page-2" class="front-page-2"><div class="flexible-widgets widget-area' . wellness_widget_area_class( 'front-page-2' ) . '"><div class="wrap"><h3 class="fp2-title">Our Latest Blog Posts</h3>',
    'after'  => '</div></div></div>',
) );

Replace Our Latest Blog Posts with your desired heading text.

Step 2

In style.css add the following above media queries:

.fp2-title {
    text-align: center;
    margin-bottom: 20px;
}

.front-page-2 .flexible-widgets.widget-fourths .widget:nth-child(4n+1) {
    clear: none;
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.