WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Change order of Homepage items? (18 posts)

  1. UltraMarathonEER
    Member
    Posted 7 months ago #

    I would like to put my welcome page content just below the slider and above the featured pages section, but cannot find anywhere to make the change. Any help would be appreciated.

  2. ElectricFeet
    Member
    Posted 7 months ago #

    You would need to modify the code to do this. Don't know how.

  3. UltraMarathonEER
    Member
    Posted 7 months ago #

    Yeah, I've dug through each of the included pages but none of the parts look to have the content I am looking for. I've found the div for the main content wrapper, but nowhere to change the php code to sort differently. I've changed themes already anyways.

    Maybe if they come up with a way to sort the homepage items I'll be back...it's a very promising theme.

  4. Tasha
    Member
    Posted 7 months ago #

    The way I did this was as follows:

    In my child theme find the following code in custom-page.php

    do_action( '__fp_block' );

    Move this all the way down just above get_footer();

    Worked for me!

  5. UltraMarathonEER
    Member
    Posted 7 months ago #

    Thanks for the tip...I'll check into it if i revisit the theme later.

  6. macohen85
    Member
    Posted 7 months ago #

    I tried this and it didnt work...? Here is what my custom-page.php code looks like:

    <?php
    /*
    Template Name: Custom Page Example
    */
    
    get_header();
    
        do_action( '__breadcrumb' );
          ?>
            <div class="container" role="main">
                <div class="row">
                    <?php
    		do_action( '__sidebar' , 'left' );
    			        	do_action( '__loop' );
                       do_action( '__sidebar' , 'right' );
                    ?>
                </div><!--#row -->
            </div><!-- #container -->
        <?php
    do_action( '__fp_block' );
    get_footer();
    ?>
  7. Tasha
    Member
    Posted 7 months ago #

    I copied your code and tested it on my site and it worked for me. Are you sure you selected your custom template and clicked update in the wp-admin area?

  8. redmonduser
    Member
    Posted 7 months ago #

    I am having the same issue and this solution above does not seem to work for me.

    Here is what I did:
    1. Created a child theme for customizr
    2. Included a style.css file and a custom-page.php file in the child directory
    3. Moved the do_action( '__fp_block' ); line all the way down above the get_footer() line as in the code above from macohen85
    4. Activated the child theme

    What else do I need to do? Not sure what you mean by "clicked update in the wp-admin area". Where do I select my custom template and click update?

    Apologize if this is a basic question - I am new to all this....

  9. redmonduser
    Member
    Posted 7 months ago #

    Update - if you make the same change to index.php (instead of custom-page.php) it works!

  10. Tasha
    Member
    Posted 7 months ago #

    Hi redmonster

    What I mean is when you go to your dashboard > pages > choose the page where you want to implement the changes. On the right side of that page you will have Page Attributes. In the template dropdown box, choose custom-page.php and then click update.

    If you make changes in index.php any updates to the theme will overwite your changes - as far as I know.

    Let me know if that works for you.

  11. RoyalXpress
    Member
    Posted 7 months ago #

    I think ordering of Home Page items (page content or post, slider and featured pages section) could provide more theme flexibility, if it is in customization option under Front Page Section. Nikeo, please consider this in the next version !!!

  12. RoyalXpress
    Member
    Posted 7 months ago #

    I want to reorder Home Page items. How can i do it on version 3.0.10. I can find get_header()!!!

  13. RoyalXpress
    Member
    Posted 7 months ago #

    I want to reorder Home Page items. How can i do it on version 3.0.10. I can NOT find get_header()!!!

  14. rdellconsulting
    Member
    Posted 7 months ago #

    get_header is in /parts/class-header-header_main.php, but also look in custom-page.php and index.php which have changed in 3.0.10

  15. RoyalXpress
    Member
    Posted 7 months ago #

    How can I do this on 3.0.10? Sorry for asking the basic help.

    This below method is for 3.0.9

    <?php
    /*
    Template Name: Custom Page Example
    */

    get_header();

    do_action( '__breadcrumb' );
    ?>
    <div class="container" role="main">
    <div class="row">
    <?php
    do_action( '__sidebar' , 'left' );
    do_action( '__loop' );
    do_action( '__sidebar' , 'right' );
    ?>
    </div><!--#row -->
    </div><!-- #container -->
    <?php
    do_action( '__fp_block' );
    get_footer();
    ?>

  16. RoyalXpress
    Member
    Posted 7 months ago #

    Need help!!!

  17. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    @RoyalXpress - perhaps you are not aware that these are volunteer forums - http://codex.wordpress.org/Forum_Welcome#No_Bumping

    If you need help that urgently, consider hiring someone - http://jobs.wordpress.net/

  18. esd3104
    Member
    Posted 5 months ago #

    I was recently looking to do exactly this and stumbled into the fact that in later versions of the theme this solution was no longer valid. Some more digging and I was able to find a solution that worked with v3.0.13

    First up take a look at this:
    http://www.themesandco.com/snippet/move-featured-pages-block-anywhere-front-page/

    I still found it a little hard to follow but got it to work. Not sure if what I did is exactly optimal but it did work.

    1. Create the child theme and activate it
    2. Copy functions.php from the customizr theme folder into the child theme folder customizr-child
    3. Pasted the code from the snippet web page linked above.
    4. Edited the line that contains add_action ( '__before_header' and replaced the word header with footer so it reads add_action ( '__before_footer'

    Refresh the home page and now the featured pages are at the bottom of my home page.

    Hope this helps someone else. I read the first 10 pages of the support form and found a lot of great info that helped me. This is a great theme!

Reply

You must log in to post.

About this Theme

About this Topic