Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11131
    ncmh-cardiff
    Member

    Hi, I’m looking to move the three featured posts from the current position below the slider to beneath the main content area, just above the footer.

    Is this possible? I figure it’ll probably involve editing a template file, but I’ve been unable to find the right one so far.

    Site is here for reference: http://lee.creativewebffotogallery.org.uk/

    Thanks!

    #11153
    Sakin
    Keymaster

    @ncmh-cardiff: Yes, this is more technical question and you need to know about the development to change this.

    For this you need to build child theme and then in your child theme functions.php you need to remove the featured content action hook and add it back with different location. See the example below.

    // Remove the homepage featured content
    remove_action( 'catcheverest_main', 'catcheverest_homepage_featured_display', 10 );
    add_action( 'catcheverest_after_main', 'catcheverest_homepage_featured_display', 10 );
    #11265
    ncmh-cardiff
    Member

    Thanks very much for the quick response! I’ll play around with a child theme and see how I get on.

    #11298
    ncmh-cardiff
    Member

    Hi Sakin, I’ve created child theme and an associated functions.php file containing the following code:

    <?php

    add_action( ‘catcheverest_after_main’, ‘catcheverest_homepage_featured_display’, 10 );
    remove_action( ‘catcheverest_main’, ‘catcheverest_homepage_featured_display’, 10 );

    ?>

    It adds the Featured Content area after the main content just fine, but the original Featured Content area remains. At the moment I’m hiding it with CSS but it’s not the ideal solution.

    Am I doing something wrong with the remove_action command?

    #11319
    Sakin
    Keymaster

    @ncmh-cardiff: I just check in your site and you have already done it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Moving Featured Homepage Featured Posts’ is closed to new replies.