Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1317970
    PhilLeedsTrinity
    Participant

    Hi there Team X!

    You’ve helped me out massively in the past and am hoping you can help me out again with this Blog Post issue. I’ve tried to crawl through the forum to find the answer, but to no avail…

    So, I want to change the way my blog posts look when the post is clicked on (via The Grid plugin) – http://www.loveltu.com/blog.

    For example – http://loveltu.com/body-mind/just-test-see-looks/ – I don’t want the sidebar to appear and could do with changing things like removing the notepad icon at the beginning of the title, changing colour of the title font, and removing the Featured Image at the top of the post when it’s repeated in the post.

    Is there a way to do all this, as I can’t figure it out at all?

    Any help would – as always – be massively appreciated.

    Phil.

    #1318331
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    1) Please use following code in your child theme function.php file to remove sidebar from post page:

    
    function x_get_content_layout() {
    
        $content_layout = x_get_option( 'x_layout_content' );
    
        if ( $content_layout != 'full-width' ) {
          if ( is_home() ) {
            $opt    = x_get_option( 'x_blog_layout' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( is_singular( 'post' ) ) {
            $layout = 'full-width';
          } elseif ( x_is_portfolio_item() ) {
            $layout = 'full-width';
          } elseif ( x_is_portfolio() ) {
            $meta   = get_post_meta( get_the_ID(), '_x_portfolio_layout', true );
            $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta;
          } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) {
            $layout = 'content-sidebar';
          } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) {
            $layout = 'sidebar-content';
          } elseif ( is_page_template( 'template-layout-full-width.php' ) ) {
            $layout = 'full-width';
          } elseif ( is_archive() ) {
            if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) {
              $opt    = x_get_option( 'x_woocommerce_shop_layout_content' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            } else {
              $opt    = x_get_option( 'x_archive_layout' );
              $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
            }
          } elseif ( x_is_product() ) {
            $layout = 'full-width';
          } elseif ( x_is_bbpress() ) {
            $opt    = x_get_option( 'x_bbpress_layout_content' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( x_is_buddypress() ) {
            $opt    = x_get_option( 'x_buddypress_layout_content' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } elseif ( is_404() ) {
            $layout = 'full-width';
          } else {
            $layout = $content_layout;
          }
        } else {
          $layout = $content_layout;
        }
    
        return $layout;
    
      }

    2) You can add this under Custom > CSS in the Customizer to remove notepad icon and change color of title:

    .entry-title:before{display:none !important}
    
    
    h1.entry-title {
        color: #ea4c8f !important;
    }

    3) You can walk-through following tutorial to remove duplicate featured images on posts:

    http://www.wpbeginner.com/beginners-guide/how-to-fix-featured-images-appearing-twice-in-wordpress-posts/

    Thanks.

    #1322571
    PhilLeedsTrinity
    Participant

    That’s amazing – as per usual! Thanks for your help. Bloody love the support X offers!!!

    A couple of further things if I can ask, please:

    Is there a way of opening the blog post from The Grid as a pop-up modal?

    Is there an X plugin for social shares on blog posts?

    That should be okay for now. There may be more to come!!

    Thanks again!

    #1322958
    Friech
    Moderator

    Hi There,

    #1 Regretfully this isn’t a feature offered by The Grid.

    #2 You can use the Entry Share shortcode.

    You can add entry share shortcode at the bottom of your post automatically with the code below added on your functions.php file.

    add_action( 'x_before_the_content_end', 'add_to_single_posts' );
    function add_to_single_posts() {
    if ( is_single() || is_page () ) {
    echo do_shortcode( '[share title="Share this Post" facebook="true" twitter="true" email="true"]' ); 
        }
    }

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-1317970 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>