• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Front Page 7 Widget To Wellness Pro

This tutorial provides the 5 steps needed to add a new widget area for an image section to the Wellness Pro themes front page 7 widget area.

Add Front Page 7 Widget To Wellness Pro

# Step 1 : Add the following PHP code to line 111 in the Wellness Pro themes front-page.php file :

# Step 2 : Add the following code to the end of the Wellness Pro themes functions.php file :

genesis_register_sidebar( array(
    'id'          => 'front-page-7',
    'name'        => __( 'Front Page 7', 'wellness-pro' ),
    'description' => __( 'This is the front page 7 section.', 'wellness-pro' ),
) );

# Step 3 : On line 23 of lib > customize.php, modify the code to this :

$images = apply_filters( 'wellness_images', array( '1', '3', '5', '7' ) );

# Step 4 : On line 26 of lib > output.php.modify the code like this :

# Step 5 : You can then add a default image named bg-7.jpg to the Wellness Pro themes images folder and change it via the Front Page Background Images setting in the customizer.

Wellness Pro Theme

Reader Interactions

Comments

  1. Burt says

    May 21, 2018 at 11:56 am

    Hi,
    I tried this but it is not showing on the home page. There must be another coding entry that needs to be added since I can’t see it when viewing the page’s html. I see 1 through 6, but not 7. Here’s the page https://new.thegourmetshop.net

    Thanks!

    Log in to Reply
    • Brad Dalton says

      May 21, 2018 at 12:50 pm

      Hello Burt. All the code on wpsites.net is tested including this one which i tested again just now. You will need to populate the front page 7 widget area.

      Members enjoy code installation and tutorial requests.

      Log in to Reply
      • Burt says

        May 21, 2018 at 1:43 pm

        You are right. I made an “it’s late on Monday” mistake. I didn’t add a widget to the section so it was not displaying.
        Thanks for the free tutorial!

        Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.