Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1490034

    Hello,
    I could not locate a widget to dynamically display the CPT Portfolio Items categories. I am creating a custom layout for use with Portfolio Items and I want a specific sidebar to display on all those portfolio pages that displays a pull down menu of the available categories. The “categories” widget doesn’t allow me to specific which post type to display. I tried using Display Post Types widget, but nothing loads.

    #1490087

    Hey milkrow,

    Thank you for the inquiry.

    Have you tried using the Navigation Menu widget? You will need to create a custom menu in the Appearance > Menus panel and include the Portfolio Categories. If you don’t see these items, go to Screen Options and toggle the Portfolio Categories checkbox. You can then select this menu in the Navigation Menu widget.

    Screenshot-2025-10-13-at-1-07-31-PM

    Best regards,
    Ismael

    #1490261

    Hi Ismael,
    I found those options (I didn’t think of the nav menu…such an obvious choice). However, when I populate that menu, and set that menu to display on the portfolio pages, it shows up, but the links do not work.
    https://drive.google.com/file/d/1uN9V9ItpDRJGDBjdYe2yO-5nmoRHbVaT/view?usp=sharing

    In the menu area of the dashboard, the link is working:
    https://drive.google.com/file/d/12-myosbU7ZKl-fsC1lfgzr0EV6l9bAjf/view?usp=sharing
    https://libbiemark.com/artworks/1960s/
    (also, am I able to edit this category page?)

    Additionally, I inspected the menu to compare a working category link vs. the portfolio category link. They had different classes. However, when I tried to manipulate the classes of the portfolio category link to match the working post category link, it had no affect. See this image:
    https://drive.google.com/file/d/1nszk6G2MM-KIZe9-r2Bw7zgwmeIHPOhq/view?usp=sharing

    On a staging site, I remade the menu and widget on portfolio pages and added regular post categories and portfolio categories, and neither of those links worked, but a simple link to a page worked.

    • This reply was modified 2 weeks, 2 days ago by milkrow.
    #1490270

    Hi,

    Thank you for the update.

    The “for-stephen” page is password-protected, so we cannot access it. Please provide the password in the private field or include the site’s login details.

    Best regards,
    Ismael

    #1490296

    The password protection shouldn’t matter, you can still see the links aren’t working. But I removed the password.

    I did some tinkering, and I have discovered something.

    Compare one portfolio item vs. another. They have the same template but their Title Bar settings are different.
    The Title Bar is set to “hide both” and the links don’t work here:

    The Title Bar is set to “default”, and the links do work here:

    So there is something that is causing the links to stop working if “hiding both” is selected. I think it is the existence of drop-down menu items in the header where those regions overlap the sidebar. See this screenshot:

    https://drive.google.com/file/d/1gac80t1KhrN_RVFbez1uoBZXRLn9RSR_/view?usp=sharing

    You can see that the region for the drop-down menus overlaps the sidebar menu items at the top. I added two additional categories in the menu, and those work because they fall below the drop-down menu region.

    As a work around, I can show the title bar (though, for various reasons particular to this site’s content, I wanted to hide the title and use an h1 in the custom layout), but I think this should be addressed so that one can have a drop-down menu, and sidebar navigation that do not conflict (out-of-the-box). I could also add padding to the menu…but I shouldn’t have to force the sidebar menu down on the page to avoid overlap with the drop-down menu region–if the region were larger, it would still conflict with moderate padding.

    Can you fix this?

    Just in case there was an issue between the Boxed vs Stretched layout, I switched to the stretched layout (but it turns out the same issues existed in Boxed and Stretched).

    Also: Before I found this through inspecting the menu, I’d considered these options below. I’m including them in case it’s helpful:

    I also tried setting the page’s sidebar settings to use “Sidebar Pages” and moved the navigation widget to the default Sidebar Pages widget area. Same result, so it doesn’t appear to be an issue with the custom widget area.

    I added Enfold Child Latest Portfolio links to the Sidebar Pages widget area and those links work (even when “hide both” is selected). ((But this is because they appear lower on the page and don’t conflict with the Z-index of the drop-down menus, even when those drop-down menus aren’t active.))

    I have since removed these test options and put the navigation menu widget back in the custom widget area and changed the settings back to display these in my custom posts.

    • This reply was modified 2 weeks, 1 day ago by milkrow. Reason: Note regarding changes made once tests were completed
    • This reply was modified 2 weeks, 1 day ago by milkrow. Reason: added screenshot link
    #1490316

    Hi,

    Thank you for the update.

    Did you add this css code?

    .avia-menu.av-main-nav-wrap, .main_menu {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    

    This causes the main menu to cover the top half of the sidebar and everything below it. You need to remove this code or override it with this css rule.

    #top .avia-menu, #top .main_menu {
        display: block;
    }
    
    #top .avia-menu #avia-menu {
        float: right;
    }

    Screenshot showing the menu overlap issue:

    Screenshot-2025-10-17-at-12-29-09-PM

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    Best regards,
    Ismael

    #1490351

    Thank you for determining the issue causing the links to not work due to overlap. That css change fixed the issue.

    #1490360

    Hi,
    Glad that Ismael could help, if you have further questions please open a new thread and we will try to help. Thanks for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Add widget for Portfolio Item categories to sidebar that is dynamic’ is closed to new replies.