• Resolved thunder86

    (@thunder86)


    Hello, my Page isn’t online yet but how can I change the order of the Main Page.

    Standard order: Social Menu, Posts, Footer 1, Footer 2.

    I prefer to remove the Posts from the Mainpage because I will work with the widget in Footer 1 instead

    • This topic was modified 1 year, 11 months ago by thunder86.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @thunder86,

    Go to Appearance → Customize → Additional CSS (the menu labels might be different in your language) and add the code below:

    .home #site-content { display: none; }

    Let me know if that does it.

    — Anders

    Thread Starter thunder86

    (@thunder86)

    Unfortunately this work not 100% like I expect.

    The post are hidden but der is a huge gab between Social Menu and the footer 1.

    https://photography.surferparadise.de

    Theme Author Anders Norén

    (@anlino)

    @thunder86 Amend the CSS I posted earlier with this:

    .footer-widgets { position: relative; z-index: 2; }
    Thread Starter thunder86

    (@thunder86)

    Amazing! This works perfect! Is there any change to put the social menu under the widget via css?

    Theme Author Anders Norén

    (@anlino)

    @thunder86 Happy to hear it. You can’t move the social menu without making some pretty significant changes in a child theme, unfortunatey.

    Thread Starter thunder86

    (@thunder86)

    Okay I unterstand. Is there any chance to remove side name and describe?

    In this case the social menu will move up ?

    Theme Author Anders Norén

    (@anlino)

    Sure, this will do it:

    .home .header { display: none; }

    Keep in mind that hiding the H1 site title on the home page will have SEO ramifications, though.

    Thread Starter thunder86

    (@thunder86)

    Ah perfect.. Only disadvantage that I have seen, Social menu is hidden as well.

    Now I have to check how I can put the social menu in the bottom. I already change the footer (not the widget! The html file).

    I just need the social menu code to put it above your “THEME BY?ANDERS NORéN“.

    I know it will be shown twice on the other pages but that’s okay for me.

    Thread Starter thunder86

    (@thunder86)

    Okay done!

    I put the following code above the footer:

    <?php if ( has_nav_menu( 'social' ) ) : ?>
    			
    				<ul class="social-menu">
    							
    					<?php 
    					wp_nav_menu( array(
    						'theme_location'	=>	'social',
    						'container'			=>	'',
    						'container_class'	=>	'menu-social',
    						'items_wrap'		=>	'%3$s',
    						'menu_id'			=>	'menu-social-items',
    						'menu_class'		=>	'menu-items',
    						'depth'				=>	1,
    						'link_before'		=>	'<span class="screen-reader-text">',
    						'link_after'		=>	'</span>',
    						'fallback_cb'		=>	'',
    					) );
    					?>
    					
    				</ul><!-- .social-menu -->
    			
    			<?php endif; ?>
    Thread Starter thunder86

    (@thunder86)

    Hey!
    .home was for the main page but how could I remove the header on some other pages ?

    As example: https://photography.surferparadise.de/get-your-pictures-step-1/

    I would like to remove the header on this site. Could I remove the header via css?


    If its possible, I would remove the header completely from all sites because the social menu in the footer works quite well.

    Thread Starter thunder86

    (@thunder86)

    I catch up this Topic because I′m still interested to find a solution to remove the header from other pages on my website.

    .home .header { display: none; } what is the code instead of .home to remove the header?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Don’t show posts on Mainpage’ is closed to new replies.