Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1303862

    Hi.
    How do I link directly to portfolio displaying only entries from a selected category?
    I know there is a link to categories from the WP menu, but it displays a page that is acting differently than my regular portfolio page (the thumbnails linked to a page rather than expanding the image or video).

    I would like to either get an option to link to a selected category directly on the portfolio page (that would be a proffered solution) –
    I guess something like …/video-brochure-gallery/?cat=Nonprofit

    Or somehow modify this page …/portfolio_entries/Nonprofit/

    Is that possible?

    Thank you

    #1304301

    Hey purmar,
    Thank you for your patience and thanks for the link to your site, as I understand your request you would like the portfolio archive page items will open either an image or video in a lightbox. To do this scroll to the bottom of your portfolio item in the backend and change the Overwrite Portfolio Link setting to Define custom link you will then see the Link portfolio item to external URL option:
    Link_portfolio_item_to_external_URL.jpg
    Then on the archive pages such as the category page, the portfolio item will open a lightbox:
    2021-06-06_170630.jpg
    This will help you link directly to a portfolio category and achieve your lightbox effect, unfortunately the sorting links in the portfolio element are not real and is controlled by javascript so directly linking is not possible.

    Best regards,
    Mike

    #1304655

    OK. Thank you. That works as a workaround. But I would still like to customize the page “portfolio_entries”, specifically the size of the preview image, and to modify or remove the sidebar. Is there a template that I could modify?

    #1305046

    Hi,
    The portfolio items element is found at \wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\portfolio\portfolio.php & portfolio.js but that is only for the inner items the page template is found at \wp-content\themes\enfold\archive.php but that is the template for all archive page types. To remove the archive sidebar please see the theme options > sidebar settings:
    2021-06-10_045234.jpg
    To modify the lightbox popup you would write some css to target the image with the class .mfp-img with either height or width like this:

    img.mfp-img {
      width: 80vw !important;
    }

    but please note that it is possible to distort the image so you may want to balance the height and width, and you probably will not want to go 100% width because closing the image is often done by cliking away from the image so you will want to leave a edge.

    Best regards,
    Mike

    #1305130

    Sorry, but I do not want to modify the lightbox popup. Rather, on the category page the grid is showing the images as rectangle https://thevideocards.com/portfolio_entries/medical/ . On my main page portfolio page they are square https://thevideocards.com/video-brochure-gallery/
    How do I force the page to show the images in similar way as on the main portfolio page where the image is displayed as a square? I would like to also modify the grid from 3 in a row to 4, but I am not sure if there are any controls to further modify the page portfolio_entires.

    As far as the lightbox, that works the way it should.

    #1305467

    Hi,
    Sorry for the late reply, so what I’m seeing is backwards from what you explained, on the portfolio archive page the grid is 3 wide and are square, and on your gallery page the grid is 4 wide and it’s a rectangle, so I believe that if you change your archive page to a 4 wide grid it will sort this out. Please edit the taxonomy-portfolio_entries.php on line 33 in your Enfold parent directory, look for: 'columns' => '3', and change to 4
    2021-06-13_120907.jpg
    You can also save this to your child theme directory for it to stay persistent for future updates.

    Best regards,
    Mike

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