WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Fourteen
[resolved] text before featured at home page (7 posts)

  1. nadyaQL
    Member
    Posted 10 months ago #

    Hi, i will like to change the text of my home page to appear before the featured grid, if is this possible,
    thanks!

  2. WPMU DEV
    Member
    Posted 10 months ago #

    Hi @nadyaQL,

    Could you please share me your site link so that i can help you to change the text of your home page?

    Also tell me exactly which text you are referring.

    Kind Regards,
    WPMU DEV

  3. nadyaQL
    Member
    Posted 10 months ago #

    HI, my site is at local host,
    but what i need is:

    I create a page named home, and set this page as static front page.
    the front page displays a featured post grid, and after it the text/content i wrote on this page. but i will like to have first this content and then the featured post grid.

    don't know if you get what i mean, thank you so much for take the time to help me.

    nad

  4. WPMU DEV
    Member
    Posted 10 months ago #

    Hi @nadyaQL,

    Thank you for your reply.

    You can achieve it by overwriting and editing following particular Twenty Fourteen theme template files in your child theme.

    page.php ( If you are using default page template for home page. )

    full-width.php or contributors.php ( If you are using contributors or full width page template for home page. )

    Remove / comment the following code from the template file which you will find around line number 18

    <?php
    	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    		// Include the featured content template.
    		get_template_part( 'featured-content' );
    	}
    ?>

    After removing the above code add it again before the following closing div

    </div><!-- #main-content -->

    Also you will have to use the following CSS code in the style.css file of your child theme to display it properly.

    div#featured-content {
        position: static;
    }

    Best Regards,
    WPMU DEV

  5. nadyaQL
    Member
    Posted 10 months ago #

    Thank you so much!
    it works :)

  6. nadyaQL
    Member
    Posted 10 months ago #

    ;)

  7. WPMU DEV
    Member
    Posted 9 months ago #

    You are most welcome, if I can be of any further assistance please don't hesitate to ask :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags