• Resolved oshin99

    (@oshin99)


    @media (min-width: 769px) {
        #right-sidebar {
            position: -webkit-sticky;
            position: sticky;
            top: 0;
        }
    }
    
    @media (max-width: 768px) {
        .sidebar {
            display: none;
        }
    }/* GeneratePress Site CSS */ /* grey line under navigation */
    
    .site-header {
    	border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    /* navigation subscribe underline */
    
    .main-navigation:not(.slideout-navigation) .main-nav li.subscribe-button a {
    	box-shadow: 0px -8px 0px #e0314f inset;
    	transition: all 0.6s ease 0s;
    	padding: 0px;
    	margin: 0px 20px
    }
    
    .main-navigation:not(.slideout-navigation) .main-nav li.subscribe-button a:hover {
    	box-shadow: 0px -16px 0px #e0314f inset;
    }
    
    /* wpsp meta spacing */
    
    .wp-show-posts-entry-meta {
    	margin-top: 10px;
    }
    
    /* wpsp column spacing */
    
    .wp-show-posts-columns .wp-show-posts-inner {
    	margin: 0px 0px 40px 60px;
    }
    
    @media (min-width:1030px) {
      .footer-widgets .footer-widget-1 {
        flex-basis: 50%;
    		padding-right: 100px;
      }
      .footer-widgets .footer-widget-2 {
        flex-basis: 20%;
      }
      .footer-widgets .footer-widget-3 {
        flex-basis: 30%;
      }
    }
    
    .mobile-header-navigation {
    	padding: 10px;
    } /* End GeneratePress Site CSS */

    Primary navigation is shown as sidebar sticky nav on blog pages and entire site except homepage. Can someone amend this code for me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @oshin99,
    Could you share the URL of the page where the issue is faced??

    Thread Starter oshin99

    (@oshin99)

    @prabhatrai , My website is still running offline mode. I haven’t made it visible in google search engine.

    My theme is having a sidebar left.php file, due to which it is showcasing primary navigation as sidebar navigation on the entire website except the homepage. So I want to disable it and display primary navigation in the header only.

    Moderator bcworkz

    (@bcworkz)

    You don’t want the sidebar menu anywhere? It’s impossible to suggest CSS without knowing what the HTML looks like, which is why we were asking for a link. If you don’t want the menu at all, it’s better to prevent HTML output instead of simply hiding with CSS.

    If the menu is implemented as a widget, just remove it from the sidebar area. If it’s coded into the sidebar template, find the responsible code and remove it. It’s typically a call to wp_nav_menu(), YMMV.

    As menu appearance is theme related, if you need more specific advice, I recommend seeking help through your theme’s dedicated support channel where its devs and expert users are in a better place to help you.

    Thread Starter oshin99

    (@oshin99)

    @bcworkz here is the link if you can access it. Open it on the desktop. You can see there is a primary nav on the left side and I checked it up in the widget area, but it’s not there. My theme has a separate PHP file for this. Do you know how can I disable it?
    And thanks for your help!
    link – https://digitaloshin.com/blog/

    Thread Starter oshin99

    (@oshin99)

    hey, I solved the problem. Thanks, everybody @bcworkz @prabhatrai

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fix this css code please’ is closed to new replies.