WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] Add Front Page Text and SEO Title and Description (7 posts)

  1. Andrea Reed
    Member
    Posted 6 months ago #

    Hi there,

    I understand that the Front page of the theme is not a page. Is it possible to add text to it, perhaps below the slider? Also, how could I add SEO custom info (I'm using Yoast) for the Front page?

    Thanks!

  2. ElectricFeet
    Member
    Posted 6 months ago #

    You can make a page called "home" and designate it as your home page in Customiz'it.

  3. Andrea Reed
    Member
    Posted 5 months ago #

    Awesome. Thanks! Any way to have the text show between the slider and the three buttons? http://tulsaholistichealth.com

  4. ElectricFeet
    Member
    Posted 5 months ago #

    If you're comfortable with php, you can move the featured pages after the page's text, by using this snippet.

    In your case, you need to use the case study on "moving the featured pages to the top of the home page", but instead of hooking it to the __before_header hook, you need to hook onto __after_main_container.

    So the code becomes:

    // Move featured pages below home page text
    add_action ( 'wp_head' , 'move_my_fp');
    function move_my_fp() {
        //we unhook the featured pages
        remove_action  ( '__before_main_container', array( TC_featured_pages::$instance , 'tc_fp_block_display'), 10 );
    
        //we then re-hook the featured pages after the page content
        add_action  ( '__after_main_container', array( TC_featured_pages::$instance , 'tc_fp_block_display'), 10 );
    }

    You may also want to suppress the <hr> after the featured pages with:

    hr.__after_main_container {
        display: none;
    }

    in your Custom CSS and add a new <hr> to your text in the home page, so that the text is separated from the features.

    If you've never used php before, but want to dive in, check out How to customize Customizr.

  5. Andrea Reed
    Member
    Posted 4 months ago #

    Thank you for this. I am comfortable editing PHP. Do I edit the custompage.php file? I could not see a page.php file in the main theme folder to copy over to my child theme.
    Thanks!

  6. rdellconsulting
    Member
    Posted 4 months ago #

    Try adding the php to your CT functions.php, and the css to CT style.css

  7. Andrea Reed
    Member
    Posted 4 months ago #

    Works like a charm! Thanks!

Reply

You must log in to post.

About this Theme

About this Topic