Okay
  Public Ticket #1724519
Portfolio Customization
Closed

Comments

  •  1
    cori333 started the conversation

    I am having some portfolio editing issues. On the portfolio/projects page, is there a way to have the filter links click directly to the corresponding page oppose to filtering out the content below? How do I move the links that click to the next page from the bottom to the top? Lastly in regards to the footer, is there a way to make all of the content more linear instead of columned like how the copy right and social media icons are displayed? Thank you!

  • [deleted] replied

    Hi cori333,

    As I understand on your first question:

    Is there a way to have the filter links click directly to the corresponding page oppose to filtering out the content below?
    I guess you mean a static click to portfolio items category, if so this is achieved by adding the following code in functions.php:

    add_filter( 'portfolio_container_isotope_category_sort_by_js', '__return_false' );

    How do I move the links that click to the next page from the bottom to the top?

    Are you using endless pagination or standard pagination (1.2.3..)?


    Is there a way to make all of the content more linear instead of columned like how the copy right and social media icons are displayed?
    Footer provides two types of content alignment, I guess the first one suits you:


    (view large version)

  •  1
    cori333 replied

    To reference https://demo.kaliumtheme.com/construction/projects-list/

    I would like the portfolio category items listed as buildings, finished, infrastructure etc. to click to their corresponding pages opposed to filtering out the thumbnails below. I want to then add this menu to each projects page so users can click to the page they want opposed to having to click to the next predesignated project. I took the portfolio item widget and did custom css to take out the thumbnails so only the menu was showing but I am not sure if that is the right way:

    /* .portfolio-holder,
    .portfolio-type-1,
    .sort-by-js {
    display: none;
    } */

    This gives me just the menu but I am not sure how to go about making the links clickable without messing with the js and/or php. Please help!

    As for the footer, the second choice is closer to what I want but if I decided to add text, it will not do a full width across the bottom of the page. You can see this in the construction theme that the menu doesn't go horizontal but vertical. I had to add the text to the Footer Text section below the Footer Style that you screen shotted in order to get the style I want. Is this vertical option something that is possible with this theme?  Thank you for your help!

  • [deleted] replied

    Hi Cori,

    The code that I gave you makes the portfolio category links to redirect to their corresponding pages, see this video:

    https://d.pr/v/pqgDdW

    And with this "I want to then add this menu to each projects page" do you mean to include it in portfolio single page like for example:

    When browsing:

    https://demo.kaliumtheme.com/construction/projects/old-house-restoration/


    (view large version)

    I think this resolves to what are you talking about. I am sorry if I understood you properly.

    As for the footer, in our current demo we have these settings:


    (view large version)


    (view large version)


    (view large version)



    (view large version)


  •  1
    cori333 replied

    I would like the portfolio category links to bypass the:

    .com/construction/projects-list/portfolio-category/renovation/ 

    and instead go right to: 

    .com/construction/projects/old-house-restoration/ 

    thus skipping the filtering and going right to the main page of that category. I would like to then take those links and put them on each one of the category pages. Please reference the screenshots I have attached

  • [deleted] replied

    Hi Cori,

    Can you please the following PHP in functions.php:

    // Set portfolio category link under portfolio prefix
    function remove_portfolio_category_prefix( $termlink, $term, $taxonomy ) {
        if ( 'portfolio_category' == $taxonomy ) {
            return get_post_type_archive_link( 'portfolio' ) . $term->slug;
        }
        return $termlink;
    }
    add_filter( 'term_link', 'remove_portfolio_category_prefix', 10, 3 );
    // Check if given value matches terms
    function check_for_matched_portfolio_category( $query ) {
        if ( $query->is_main_query() ) {
            $portfolio = isset( $query->query['portfolio'] ) ? $query->query['portfolio'] : '';
            if ( ! empty( $portfolio ) ) {
                $term = get_term_by( 'slug', $portfolio, 'portfolio_category' );
                if ( $term instanceof WP_Term ) {
                    query_posts( "portfolio_category={$term->slug}");
                }
            }
        }
    }
    add_action( 'pre_get_posts', 'check_for_matched_portfolio_category', 100 );
    
    It will replace the "portfolio-category" with archive link "...com/portfolio/category-name"


  •  1
    cori333 replied

    This code doesn't do anything I asked for. It changed the links so that it goes back to the home page... Can someone please call me so I can explain what needs to be done... 

  • [deleted] replied

    Hi Cori,

    I am not sure if you have tried the code I sent to you, see the this video that I have recorded when I tested the code on my local copy:

    https://d.pr/v/v83GR0

    It transforms portfolio URL-s the way you wrote:

    http://kalium.local/portfolio-category/digital-art/

    to:

    http://kalium.local/portfolio/digital-art

    This is outside of support scope however I wanted to help you achieve that.

  •   cori333 replied privately
  • [deleted] replied

    I have tried and it worked see this video:

    https://d.pr/v/mNGtW6

    I am not sure why it doesn't worked when you added!

  •  1
    cori333 replied

    I am just going to create a row with text and add the links in. Is it possible to make a 1/8 + 1/8 + 1/8 .... etc. column? Thank you for your time and help.

  • [deleted] replied

    Hi,

    Regarding your further questions, kindly open a new ticket and post your request so it will be helpful for the other users to take advantage of searching them on the forum. We’re glad to help you in your new thread.

    Will set this ticket as solved from here.