Show Eleven40 Page Title WIDGET Data ONLY on Home Page

Community Forums Forums Design Tips and Tricks Show Eleven40 Page Title WIDGET Data ONLY on Home Page

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  SoZo 1 year, 10 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16302

    gh5649
    Participant
    Post count: 13

    I am using Eleven40 theme.  There is a built in widget called PAGE TITLE WIDGET.  This widget shows text below the main header on every page – and every post page..  I wish to show the text contained in the PAGE TITLE WIDGET only on the HOME page.

    How do I do this?

    Thanks.
    Gary.

     

    #16303

    SoZo
    Moderator
    Post count: 1573

    Move the page title function from functions.php to home.php


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #16678

    ajwidgets
    Participant
    Post count: 7

    If you dont want to move the code you can also alter the existing code on functions.php

    add_action( ‘genesis_before_content_sidebar_wrap’, ‘eleven40_page_title’ );
    function eleven40_page_title() {
    if (is_front_page()) {
    genesis_widget_area( ‘page-title’, array(
    ‘before’ => ‘<div class=”page-title widget-area”>’,
    ) );
    }
    }

    #17158

    gh5649
    Participant
    Post count: 13

    SoZo –

    Exactly what code do I move from the functions.php to home.php?

    Is this the entire code to Move:

     

    /** Add the page title section */
    add_action( ‘genesis_before_content_sidebar_wrap’, ‘eleven40_page_title’ );
    function eleven40_page_title() {
    genesis_widget_area( ‘page-title’, array(
    ‘before’ => ‘<div class=”page-title widget-area”>’,
    ) );
    }

     

    Please advise –

    Thanks.
    Gary

     

    #17161

    SoZo
    Moderator
    Post count: 1573

    Yep, that’s it


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #17373

    gh5649
    Participant
    Post count: 13

    SoZo –

    Great – I followed your suggestion – and that did the trick.

    Thank you.

    Gary

     

    #17396

    SoZo
    Moderator
    Post count: 1573

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Show Eleven40 Page Title WIDGET Data ONLY on Home Page’ is closed to new replies.