Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1154486
    Takroony
    Participant

    Hello Team X,

    1. Breadcrumbs
    I am currently using The Grid plugin to showcase my portfolio items. The issue I am seeing is that on the individual portfolio item page the breadcrumb is broken.

    Please check the top left corner
    http://hamzahjamjoom.com/work/wamah3-titlesequence/

    2. Portfolio Alignment
    Also, I am using cornerstone to build the portfolio item pages. I want to know if I can line up the content (video and text) with the featured image. Right now, there is an indentation. I am attaching an image to show you what I want to do. Cornerstone seems to act differently for pages than portfolio.

    Thanks

    #1154501
    Takroony
    Participant

    3. The Grid Skin
    Is there a way to modify the Grid skin? I just want a simple overlay on mouseover.

    #1154626
    Christopher
    Moderator

    Hi there,

    #1 Please provide us with login credentials so we can take a closer look.

    #2 Please set first section’s top padding to 0.

    #3 Please check this link : https://community.theme.co/kb/integrated-plugins-the-grid/
    I’m sorry but customizing the grid plugin could be possible with custom development but it would be outside the scope of our support.

    Hope that helps.

    #1155243
    Takroony
    Participant
    This reply has been marked as private.
    #1155248
    Takroony
    Participant

    #2 I am talking about right and left alignment, not top bottom. Please look at the image I attached earlier. I want the video to be left justified with the featured image.

    #1155319
    Lely
    Moderator

    Hi There,

    Please double check admin credentials. It says incorrect username or password when I tried to login.

    #2. Please add the following CSS on Appearance > Customize > Custom > Edit Global CSS:

    .single-x-portfolio .entry-content {
        padding: 0;
    }

    Hope this helps.

    #1156200
    Takroony
    Participant
    This reply has been marked as private.
    #1156305
    Rad
    Moderator

    Hi there,

    Login credentials are still incorrect. For the meantime, please check if your main portfolio page (your portfolio item’s parent) has a title.

    Thanks!

    #1156358
    Takroony
    Participant
    This reply has been marked as private.
    #1156361
    Takroony
    Participant

    Sorry! I keep sending the wrong credentials… The last one I sent is correct.

    #1156364
    Rue Nel
    Moderator

    Hello There,

    Thank you for providing the information. This issue happened because you do not have any page that uses the “Layout – Portfolio” page template. Assign the parent portfolio page for this portfolio item in the Portfolio Item Settings which can be found when you are in the portfolio item editing page.

    This will be used in various places throughout the theme such as your breadcrumbs. If “Default” is selected then the first page with the “Layout – Portfolio” template assigned to it will be used.

    Hope this make sense. Please let us know how it goes.

    #1158530
    Takroony
    Participant

    Thanks for the info. The problem is that if I have my main portfolio page (work) use the “Layout – Portfolio” page template The Grid plug-in doesn’t work. The portfolio items are shown by default and I have no control over them.

    I prefer to showcase my portfolio using The Grid plug-in. Is there a way to make this work? Can I select “Layout – Portfolio” page template for the main portfolio page but not show the items? Then have The Grid show my items?

    #1159034
    Rad
    Moderator

    Hi there,

    It’s not possible, portfolio home page is made for portfolio items. But you can do this, add this code to your child theme’s functions.php

    function x_breadcrumbs() {
    
        if ( x_get_option( 'x_breadcrumb_display' ) ) {
    
          GLOBAL $post;
    
          $is_ltr         = ! is_rtl();
          $stack          = x_get_stack();
          $delimiter      = x_get_breadcrumb_delimiter();
          $home_text      = x_get_breadcrumb_home_text();
          $home_link      = home_url();
          $current_before = x_get_breadcrumb_current_before();
          $current_after  = x_get_breadcrumb_current_after();
          $page_title     = get_the_title();
          $blog_title     = get_the_title( get_option( 'page_for_posts', true ) );
    
          if ( ! is_404() ) {
            $post_parent = $post->post_parent;
          } else {
            $post_parent = '';
          }
    
          if ( X_WOOCOMMERCE_IS_ACTIVE ) {
            $shop_url   = x_get_shop_link();
            $shop_title = x_get_option( 'x_' . $stack . '_shop_title' );
            $shop_link  = '<a href="'. $shop_url .'">' . $shop_title . '</a>';
          }
    
          echo '<div class="x-breadcrumbs"><a href="' . $home_link . '">' . $home_text . '</a>' . $delimiter;
    
            if ( is_home() ) {
    
              echo $current_before . $blog_title . $current_after;
    
            } elseif ( is_category() ) {
    
              $the_cat = get_category( get_query_var( 'cat' ), false );
              if ( $the_cat->parent != 0 ) echo get_category_parents( $the_cat->parent, TRUE, $delimiter );
              echo $current_before . single_cat_title( '', false ) . $current_after;
    
            } elseif ( x_is_product_category() ) {
    
              if ( $is_ltr ) {
                echo $shop_link . $delimiter . $current_before . single_cat_title( '', false ) . $current_after;
              } else {
                echo $current_before . single_cat_title( '', false ) . $current_after . $delimiter . $shop_link;
              }
    
            } elseif ( x_is_product_tag() ) {
    
              if ( $is_ltr ) {
                echo $shop_link . $delimiter . $current_before . single_tag_title( '', false ) . $current_after;
              } else {
                echo $current_before . single_tag_title( '', false ) . $current_after . $delimiter . $shop_link;
              }
    
            } elseif ( is_search() ) {
    
              echo $current_before . __( 'Search Results for ', '__x__' ) . '“' . get_search_query() . '”' . $current_after;
    
            } elseif ( is_singular( 'post' ) ) {
    
              if ( get_option( 'page_for_posts' ) == is_front_page() ) {
                echo $current_before . $page_title . $current_after;
              } else {
                if ( $is_ltr ) {
                  echo '<a href="' . get_permalink( get_option( 'page_for_posts' ) ) . '">' . $blog_title . '</a>' . $delimiter . $current_before . $page_title . $current_after;
                } else {
                  echo $current_before . $page_title . $current_after . $delimiter . '<a href="' . get_permalink( get_option( 'page_for_posts' ) ) . '">' . $blog_title . '</a>';
                }
              }
    
            } elseif ( x_is_portfolio() ) {
    
              echo $current_before . get_the_title() . $current_after;
    
            } elseif ( x_is_portfolio_item() ) {
    
              $link  = x_get_parent_portfolio_link();
              $title = x_get_parent_portfolio_title();
    
              if ( $is_ltr ) {
                echo '<a href="' . $link . '">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after;
              } else {
                echo $current_before . $page_title . $current_after . $delimiter . '<a href="' . $link . '">' . $title . '</a>';
              }
    
            } elseif ( x_is_product() ) {
    
              if ( $is_ltr ) {
                echo $shop_link . $delimiter . $current_before . $page_title . $current_after;
              } else {
                echo $current_before . $page_title . $current_after . $delimiter . $shop_link;
              }
    
            } elseif ( x_is_buddypress() ) {
    
              if ( bp_is_group() ) {
                echo '<a href="' . bp_get_groups_directory_permalink() . '">' . x_get_option( 'x_buddypress_groups_title' ) . '</a>' . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;
              } elseif ( bp_is_user() ) {
                echo '<a href="' . bp_get_members_directory_permalink() . '">' . x_get_option( 'x_buddypress_members_title' ) . '</a>' . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;
              } else {
                echo $current_before . x_buddypress_get_the_title() . $current_after;
              }
    
            } elseif ( x_is_bbpress() ) {
    
              remove_filter( 'bbp_no_breadcrumb', '__return_true' );
    
              if ( bbp_is_forum_archive() ) {
                echo $current_before . bbp_get_forum_archive_title() . $current_after;
              } else {
                echo bbp_get_breadcrumb();
              }
    
              add_filter( 'bbp_no_breadcrumb', '__return_true' );
    
            } elseif ( is_page() && ! $post_parent ) {
    
              echo $current_before . $page_title . $current_after;
    
            } elseif ( is_page() && $post_parent ) {
    
              $parent_id   = $post_parent;
              $breadcrumbs = array();
    
              if ( is_rtl() ) {
                echo $current_before . $page_title . $current_after . $delimiter;
              }
    
              while ( $parent_id ) {
                $page          = get_page( $parent_id );
                $breadcrumbs[] = '<a href="' . get_permalink( $page->ID ) . '">' . get_the_title( $page->ID ) . '</a>';
                $parent_id     = $page->post_parent;
              }
    
              if ( $is_ltr ) {
                $breadcrumbs = array_reverse( $breadcrumbs );
              }
    
              for ( $i = 0; $i < count( $breadcrumbs ); $i++ ) {
                echo $breadcrumbs[$i];
                if ( $i != count( $breadcrumbs ) -1 ) echo $delimiter;
              }
    
              if ( $is_ltr ) {
                echo $delimiter . $current_before . $page_title . $current_after;
              }
    
            } elseif ( is_tag() ) {
    
              echo $current_before . single_tag_title( '', false ) . $current_after;
    
            } elseif ( is_author() ) {
    
              GLOBAL $author;
              $userdata = get_userdata( $author );
              echo $current_before . __( 'Posts by ', '__x__' ) . '“' . $userdata->display_name . $current_after . '”';
    
            } elseif ( is_404() ) {
    
              echo $current_before . __( '404 (Page Not Found)', '__x__' ) . $current_after;
    
            } elseif ( is_archive() ) {
    
              if ( x_is_shop() ) {
                echo $current_before . $shop_title . $current_after;
              } else {
                echo $current_before . __( 'Archives ', '__x__' ) . $current_after;
              }
    
            }
    
          echo '</div>';
    
        }
    
      }

    Find this code

              $link  = x_get_parent_portfolio_link();
              $title = x_get_parent_portfolio_title();

    And replace it with your custom link and title.

              $link  = 'http://hamzahjamjoom.com/work/';
              $title = 'Work';

    With that, you don’t need to select Layout – Portfolio template and parent portfolio.

    Thanks!

    #1161694
    Takroony
    Participant

    Brilliant! This totally worked. Thank a million.

    One question though. Will this slow down the speed of loading my page? Do I need to updated the functions.php in the parent theme, not the child theme? I’m just asking in regards to speed.

    Thanks

    #1161771
    Christian
    Moderator

    Speed depends on how much content is in your page. The given code won’t affect loading speed.

    You’ll need to update the child theme’s.

    Thanks.

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