Remove blog from home page

Homepage Community Forums Ambition Remove blog from home page

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #18148
    Terri
    Customer

      Hi Wes,

      How do I remove the blog section from the home page?

      Thank you!

      Terri

      #18149
      Eric
      Customer

        You can remove it from the Customizer page.


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #18151
        Wes
        Moderator

          If you go to Appearance > Customize > Front Page Content Settings you’ll see the option to remove it from there.

          #18168
          Terri
          Customer

            Hi Wes,

            I wish I could see it there. That option is not listed in my settings. Another thing about that customizer is that I cannot use it to change background colors, and changing button/link colors only changes some of the button colors.

            Here’s my list of options:

            Site Identity
            Responsive Header
            Front Page Background Images
            Colors
            Header Image
            Menus
            Widgets
            Static Front Page
            Site Layout
            Breadcrumbs
            Comments and Trackbacks
            Content Archives

            Terri

            #18169
            Wes
            Moderator

              Check out this recent Thread and let me know if you have the same issue – https://appfinite.com/topic/logo-pixelation/#post-18139 It may help with the Admin Privileges

              #18171
              Terri
              Customer

                I manually insert Dissallow File Edit TRUE in wp-config in all of my WP installs in case an unauthorized user gets into the dashboard so that they won’t be able to edit files.

                I tried changing to to FALSE to see if that Front Page Content Settings would magically appear, but it did not.

                #18172
                Wes
                Moderator

                  Unfortunately I’m not sure what it could be, as I’ve never had that issue. I’ve always been able to access the Customizer.

                  The only thing I can recommend is to make sure you’re using the latest version of WP, and temporarily disabling some of your plugins to see if they are conflicting.

                  #18173
                  Terri
                  Customer

                    Since I rarely, if ever, use the Customizer that’s really a non-issue for me. And yes; I always run the latest version of WP and plugins.

                    So. How can I manually remove the blog section from the home page? Aside from not wanting the blog on the home page, it’s very awkward to navigate. If you click on “Next” to read the next post you’re taken to the top of the home page and then have to scroll all the way back down to get to the next post….and so on.

                    Terri

                    #18174
                    Wes
                    Moderator

                      First take a look in the front-page.php file and remove this code in the aspire_front_page_genesis_meta section –

                      $journal = get_option( 'aspire_journal_setting', 'true' );
                      
                      		if ( $journal === 'true' ) {
                      
                      			//* Add opening markup for blog section
                      			add_action( 'genesis_before_loop', 'aspire_front_page_blog_open' );
                      
                      			//* Add closing markup for blog section
                      			add_action( 'genesis_after_loop', 'aspire_front_page_blog_close' );
                      
                      		} else {
                      		
                      			//* Force full width content layout
                      			add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
                      
                      			//* Remove the default Genesis loop
                      			remove_action( 'genesis_loop', 'genesis_do_loop' );
                      
                      			//* Remove .site-inner
                      			add_filter( 'genesis_markup_site-inner', '__return_null' );
                      			add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false' );
                      			add_filter( 'genesis_markup_content', '__return_null' );
                      			remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
                      
                      		}

                      Then scroll near the bottom and remove this code –

                      //* Add opening markup for blog section
                      function aspire_front_page_blog_open() {
                      
                      	$journal_text = get_option( 'aspire_journal_text', __( 'Latest From the Blog', 'aspire' ) );
                      	
                      	if ( 'posts' == get_option( 'show_on_front' ) ) {
                      
                      		echo '<div id="journal" class="widget-area"><div class="wrap">';
                      
                      		if ( ! empty( $journal_text ) ) {
                      
                      			echo '<h2 class="widgettitle widget-title journal-title">' . $journal_text . '</h2><hr>';
                      
                      		}
                      
                      	}
                      
                      }
                      
                      //* Add closing markup for blog section
                      function aspire_front_page_blog_close() {
                      
                      	if ( 'posts' == get_option( 'show_on_front' ) ) {
                      
                      		echo '</div></div>';
                      
                      	}
                      
                      }

                      Then ADD this code inside the same section where you removed the first block of code in the aspire_front_page_genesis_meta section –

                      //* Force full width content layout
                      				add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
                      	
                      				//* Remove the default Genesis loop
                      				remove_action( 'genesis_loop', 'genesis_do_loop' );
                      				
                      				//* Remove .site-inner
                      				add_filter( 'genesis_markup_site-inner', '__return_null' );
                      				add_filter( 'genesis_markup_content-sidebar-wrap_output', '__return_false' );
                      				add_filter( 'genesis_markup_content', '__return_null' );
                      				remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
                      #18177
                      Terri
                      Customer

                        Thanks, Wes… though I’m a bit confused by these instructions. I’m not seeing any of this in Ambition. What would I remove and replace in the Ambition theme?

                        Terri

                        #18182
                        Wes
                        Moderator

                          Ah, I thought you were using the Aspire theme this whole time lol. I posted the wrong code…..Although, I will be adding this code to the Ambition theme, so eventually the code will be the same.

                          Give me a sec and let me pull up the right code to remove.

                          #18183
                          Terri
                          Customer

                            I suspected as much. I’m sure you can imagine me looking at your revised code and thinking; Where the heck is the EPIC line in this Ambition theme???

                            Oh wait… now your code is referring to the Aspire theme! Where did I get the Epic code from???

                            #18184
                            Wes
                            Moderator

                              No you’re right the code I first posted was originally from the Epik theme. I just grabbed the code from it since I’m currently working on an update for it. I edited the comment right after so it wouldn’t seem confusing, but then I realized you’re using the Ambition theme 🙂

                              Eventually that code above will be added in the Ambition theme so that users will have the option to turn the blog on and off with one click.

                              For now, with the version you’re using you can edit your front-page.php file by first changing this –

                              //* Force full width content layout
                              add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );

                              To this –

                              //* Force full width content layout
                              add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

                              Then add this right under the code above –

                              //* Remove the default Genesis loop
                              remove_action( 'genesis_loop', 'genesis_do_loop' );

                              Finally, change the margin-top in your CSS to 0. It may be around line 655 in your CSS depending on whether you’ve made adjustments to it or not.

                              .front-page .site-container .site-inner {
                              	margin-top: 0;
                              	overflow: hidden;
                              }

                              Let me know if that helps.

                              #18202
                              Terri
                              Customer

                                No more blog on home page; Perfect!!

                                So, is this why I don’t (currently) have the option to turn the blog on/off in the customizer?

                                Terri

                                #18205
                                Wes
                                Moderator

                                  Yes for that one specific option, but the other options of the Customizer should still be available.

                                  The updated version will be available sometime this week.

                                  #18887
                                  Gregorio
                                  Customer

                                    Wes, friends,

                                    Again, Ambition is tops — clean, crisp, efficient.

                                    Super thanks for the blog update on Ambition. I’ve been going nuts trying to remove the homepage blog “previous/next” navigation bar.

                                    http://gregoryfosterjr.com

                                    I like the added blog space area for 1-2 blog excerpts and would like to keep the right-hand sidebar (I have my company image logo, search bar, and simple social icons in place).

                                    Simply, from a designer’s view, the previous/next navigation bar is a little distracting.

                                    Cordially,
                                    Gregorio

                                    #20359
                                    Terri
                                    Customer

                                      Hi Wes, and a belated Happy New Year!

                                      Just a note to let you know that I had to download a fresh copy of the Ambition theme. While I was able to remove the Blog section by using Customizer, that only removed a portion of it. I still had to edit the new front-page.php file (instead of the previous home.php) and use the code you provided above to remove the Blog Sidebar from the home page.

                                      Terri

                                      #20385
                                      Wes
                                      Moderator

                                        Thanks, I’m going to get this fixed today.

                                      Viewing 18 posts - 1 through 18 (of 18 total)
                                      • You must be logged in to reply to this topic.