Trouble adding custom stylesheet

Homepage Community Forums Aspire Theme Support Trouble adding custom stylesheet

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17983
    conster
    Customer

      For all StudioPress themes, I add a custom functions.php and a custom stylesheet. For Aspire, the code to add the custom child theme caused the body of pages, except the home page, to not show. I just get the header (logo and menu). When I delete the code for the custom stylesheet, the pages show properly but without my custom styles. Here is the code that I add to the functions file:

      //* Add custom stylesheet
      add_action( 'wp_head', 'add_custom_stylesheet' );
      function add_custom_stylesheet() {
          $customStylesheet=get_bloginfo( 'stylesheet_directory' ).'/style_custom.css';
         echo '<link rel="stylesheet" type="text/css" href="' . $customStylesheet . '" media="all">';
      } 

      This worked before with the theme version 1.0 but not with the current version. Here is the URL where the content does not show.

      https://islandrunnervi.com/contact-us/

      Any help, would be great. Thanks.

      #17985
      Wes
      Moderator

        It looks like you added display: none; to your .site-inner which would remove all of the content. Take a look at line 138 in your custom css file and remove this –

        .site-inner {
        	display: none;
        }

        Then it will show again.

        #17988
        conster
        Customer

          Well, I feel silly. I originally had “.home .site-inner” (did not wanted recent posts to show) but Chrome caching did not let me see the changes so I eliminated the “.home” in the CSS. It works now. Thanks for catching my error.

          #17992
          Wes
          Moderator

            Great!

            When you say “Recent Posts” are you referring to the Blog and Sidebar that shows up at the bottom of the Homepage? If so, that can be turned off by going to Customizer > Front Page Content Settings and select the option “Hide Content“.

            Let me know if that helps.

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