How to remove portfolio from home page

Homepage Community Forums Agile Theme Support How to remove portfolio from home page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8471
    Mark Scott
    Customer

      Hi Wes,

      My website currently uses your Ally theme. I want to use Agile, which I’ve just bought and started customising to see if it can do what I want.

      I didn’t buy the theme for the portfolio features, I just liked the header on the left.

      What (if anything) should I remove from the home.php so the portfolio doesn’t get diplayed?

      I guess I can just not use the home page portfolio, but even without configuring it, the post navigation (Next Page>>) is displayed and I don’t know how to remove it. I can’t see anything in the theme settings (I tried setting number of posts to zero) or home.php that controls it.

      #8473
      Wes
      Moderator

        It depends on what all you need to do. If you just want a regular page or the blog page on the front page, then you could set this in your Settings > Reading link and add the page you want as the homepage.

        If you want the homepage to be the blog, then just create the blog page first, and then set it as the homepage. There are other ways you could prevent the portfolio layout from showing, but this should be the easiest way. If this doesn’t work, or if you’re looking to do something else let me know.

        #8474
        Mark Scott
        Customer

          Hi Wes, thanks for the speedy response.

          I want to be able to use the widegetised home page, I just don’t want the portfolio portion of it. At present, while I’m setting it up (using InstantWP), no posts are showing but the next page link is. So I guess posts are being detected even though not displaying. I still get the next page link when I set the number of posts to show as ‘0’.

          #8481
          Wes
          Moderator

            You could try removing everything in your home.php file right after this code –

            // Home Bottom Message
            add_action('genesis_after_content', 'agile_bottom_widget');
            function agile_bottom_widget() {
            		
            		if ( is_active_sidebar( 'bottom-message' ) ) {
            			echo '<div class="bottom-message-wrap"><div class="bottom-message-inner">';
            			dynamic_sidebar( 'bottom-message' );
            			echo '</div><!-- end .bottom-message-wrap --></div><!-- end .bottom-message-inner -->';
            		}
            		
            }
            

            Everything above that code is the code for your widgets, so leave that as it is.

            Make sure and leave the genesis(); line at the bottom….and see if that works.

            #8484
            Mark Scott
            Customer

              Hi Wes

              I deleted everything except

              // Remove standard loop
              remove_action('genesis_loop', 'genesis_do_loop');

              and it worked!

              Thanks for your time. It’s much appreciated.

              #8486
              Wes
              Moderator

                You’re Welcome!

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘How to remove portfolio from home page’ is closed to new replies.