• Resolved Andrea Reed

    (@canadadre)


    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • ElectricFeet

    (@electricfeet)

    You can make a page called “home” and designate it as your home page in Customiz’it.

    Thread Starter Andrea Reed

    (@canadadre)

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

    ElectricFeet

    (@electricfeet)

    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.

    Thread Starter Andrea Reed

    (@canadadre)

    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!

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

    Thread Starter Andrea Reed

    (@canadadre)

    Works like a charm! Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Front Page Text and SEO Title and Description’ is closed to new replies.