Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #146204

    Harry B
    Participant

    Hello,

    Can you please tell me how to display the full content of my portfolios on the index pages in multi-portfolio view? My site is currently displaying full content in my single-portfolio-item views – (just the way I wanted). I also need to know how to sort my portfolio items by alphabetically by title (A-Z). Thanks for your help. I am using integrity-light child theme.

    Cheers,

    Harry

    #146483

    Paul R
    Moderator

    Hi Harry,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #146669

    Harry B
    Participant

    Hello,

    Thanks for the reply. My URL is http://www.waterwaymagazine.com. The portfolio pages that I want to sort alphabetically and show full content are listed in the pull down menu under “DIRECTORY”. I am still entering the data so you can check the listings under “RESTAURANTS”. I appreciate your help.

    Cheers,

    Harry

    #146884

    Kosher K
    Member

    Hi Harry,

    Thanks for providing URL of your site,

    To customize the portfolio, you need to first install and activate a child theme,

    You can download the child theme from here -> http://theme.co/x/member/child-themes/ then install the one that corresponds with your stack,

    After installing a child theme, copy this file to your child theme directory,

    x/framework/views/global/_portfolio.php
    x/framework/views/[your-stack]/content-portfolio.php

    it should be here

    x-child-[your-stack]/framework/views/global/_portfolio.php
    x-child-[your-stack]/framework/views/[your-stack]/content-portfolio.php

    #1. For showing full content on portfolio page that uses layout template portfolio, you need to edit content-portfolio.php that is located in your child theme, then search for this line,

    <?php if ( x_is_portfolio_item() ) : ?>

    replace it with this code below,

    <?php if ( x_is_portfolio_item() || is_post_type_archive('x-portfolio') ) : ?>

    #2. For ordering the portfolio item alphabetically, edit _portfolio.php that is located in your child theme.

    Search for this code below,

    $args = array(
          'post_type'      => 'x-portfolio',
          'posts_per_page' => $count,
          'paged'          => $paged
        );

    then add orderby and order parameter,

    the $arg variable should look something similar to this code below,

    $args = array(
          'post_type'      => 'x-portfolio',
          'orderby'        => 'title',
          'order'          => 'DESC',
          'posts_per_page' => $count,
          'paged'          => $paged
        );

    Hope this helps,

    Have a great day

    #147159

    Harry B
    Participant

    Hello,

    This code worked in ordering my portfolio items, and displaying full content, however now the links do not work, and there is no spacing after the title (before the content). Thanks so much for the code. I appreciate your help.

    Cheers,

    Harry

    #147488

    Cousett
    Member

    In your – x-child-[your-stack]/framework/views/[your-stack]/content-portfolio.php replace the following.

    Replace
    <h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1>

    With

    <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><h1 class="entry-title entry-title-portfolio"><?php the_title(); ?></h1></a>

    To add more space between the title and content try adding some CSS code under Appearance -> Customize -> Custom -> CSS

    h1.entry-title.entry-title-portfolio {
    padding-bottom: 10px;
    }
    #147543

    Harry B
    Participant

    Thanks a lot for the help. You guys are the best. Is there a way to make the portfolio items content be just one column instead of two? My posts look fine on a desktop, but not so good on my ipad. Th

    #147789

    Cousett
    Member

    On the portfolio edit page you can change the number of columns that appear.

    #147930

    Harry B
    Participant

    I understand that, I am talking about the columns within the post itself. There is an extra items column that displays the meta, tags, project links and social icons. They are in a separate DIV.

    This is causing my titles and content to be kind of squished on an ipad regardless of how many Masonry columns you have.

    I would like the content for each portfolio item post to be one column with the “extra items” underneath. Thanks for all of your help. I am sorry about the confusion with the request!

    Harry

    #148249

    Paul R
    Moderator

    Hi Harry,

    To make it one column, you can add this under Custom > CSS in the Customizer.

    
    body.single-x-portfolio .x-portfolio .entry-info {
         float:none;
         width:100%;
         margin-bottom:30px;
    }
    
    body.single-x-portfolio .x-portfolio .entry-extra {
         float: none;
         width: 100%;
    }
    

    Hope that helps. 🙂

    #148396

    Harry B
    Participant

    Hello,

    Thanks for the reply and the css; unfortunately it did not work. I am pasting the code I entered below to see if maybe I missed something.

    —————————-

    body.single-x-portfolio .x-portfolio entry-info {
    float: none;
    width: 100%;
    margin-bottom: 30px;
    }

    body.single-x-portfolio .x-portfolio .entry-extra {
    float: none;
    width: 100%;
    }

    ——————————————–

    My portfolio item posts still look squished on my iPad. The zip codes are wrapping to the next line when there is plenty of room (if one column) – any other suggestions? Thanks again for all you do.

    Harry

    #148689

    Rad
    Moderator

    Hi Harry,

    It should be like this ,

    body.single-x-portfolio .x-portfolio .entry-info {
         float:none;
         width:100%;
         margin-bottom:30px;
    }
    
    body.single-x-portfolio .x-portfolio .entry-extra {
         float: none;
         width: 100%;
    }

    With the correction of this, .entry-info.

    Thanks.

    #148861

    Harry B
    Participant

    Thanks again for the help, however the title, content, and extra are still wrapping.

    Any other ideas?

    Harry

    #149180

    Paul R
    Moderator

    Hi Harry,

    Can you provide us the url of the page where the title, content, and extra are still wrapping.

    Thanks

    #149507

    Harry B
    Participant

    This wrapping (or two-column effect is happening on every portfolio layout page. You notice it more on an ipad, however you can still see the wrapping at

    http://www.waterwaymagazine.com/schools-and-education

    I tried deleting the entire extra-items DIV In content-portfolio.php, but this did not fix the problem.