Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1485547

    Hello support team,

    I have set up a new website and I am having some problems implementing the desired layout.

    I would like to address the portfolio categories via the navigation (main menu>submenu), but in such a way that they are then also addressed/displayed as an AJAX portfolio. As it is now, the category is displayed, but then in the standard layout, where the sidebar is still visible on the right.

    Here is my page:

    #1485554

    Hey klick-design-rbh,

    Thank you for the inquiry.

    Unfortunately, it’s not possible to enable the AJAX portfolio feature on archive or category pages. You may need to create dedicated custom pages for your portfolio categories instead of using the default portfolio category template.

    Best regards,
    Ismael

    #1485588

    I had understood him differently. For example, if he opens the page : Link via the menu, then it should open directly in the opened ajax style.

    Versuch doch mal das in der child-theme functions.php:

    function trigger_click_on_ajax_categories(){
    ?>
    <script>
    (function($){
        $(window).on('load', function(){
            // Prüfen, ob das Element mit der Klasse 'grid-links-ajax' auf der Seite existiert
            if ($('.grid-links-ajax').length > 0) {
                setTimeout(function() {
                    // Sicherstellen, dass das erste Element vorhanden ist, bevor der Klick ausgelöst wird
                    const firstGridItem = $(".grid-links-ajax .grid-entry.first");
                    if (firstGridItem.length) {
                        firstGridItem.find('.grid-image').trigger('click');
                    }
                }, 300);
            }
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'trigger_click_on_ajax_categories');

    eventuell musst du das timing etwas erhöhen.

    #1485610

    Hi,

    If we’re not mistaken, he’s asking if it’s possible to apply the AJAX portfolio on category or archive pages. Unfortunately, there is no option for this by default.

    Best regards,
    Ismael

    #1485616

    ok – then a link to a page to which the question refers would have been helpful.
    http://wordpress.p691093.webspaceconfig.de/portfolio_entries/harfen-treppen/

    #1485617

    Hi,

    link to a page to which the question refers


    @Guenni007
    : What do you mean?

    Best regards,
    Ismael

    #1485618

    Yes exactly, that’s what I mean . I go to harp stairs here, then the sidebar appears on the right.
    If I then select the product, I do not get the display as in the AJAX portfolio but a standard portfolio page. This also takes a very long time to load. I have already installed WP Rocket and Imagify. I haven’t changed anything else.
    THX Matthias – and good morning

    Ja genau, das ist das was ich meine . Ich gehe hier auf Harfentreppen, dann erscheint rechts noch die Sidebar.
    Wenn ich dann das Produkt auswähle, bekomme ich nicht die Anzeige wie im AJAX Portfolio sondern eine Standard-Portfolio Seite. Zudem dauter auch das sehr lange, bis sie läd. WP Rocket und Imagify habe ich schon installiert. Sonst habe ich nichts geändert.

    #1485620

    Hi,

    Thank you for the clarification.

    As mentioned above, it’s not possible to enable the AJAX portfolio on archive or category pages. You will need to create dedicated custom pages for your portfolio categories instead, add the Portfolio Grid element and manually enable the AJAX portfolio option, instead of using the default portfolio category template. You can also redirect the default category pages to the custom pages with the AJAX portfolio enabled.

    https://wordpress.org/plugins/eps-301-redirects/
    https://wordpress.org/plugins/redirection/

    Best regards,
    Ismael

    #1485621

    Hello Ismael,

    thank you, but then it is easier, I build a single page for the subcategory, which then only shows this as an AJAX portfolio. I can then link the menu to this.

    Best regards, Matthias

    #1485650

    Hi,
    It sounds like Ismael was able to help. shall we close this thread then?

    Best regards,
    Mike

    #1485788

    Yes, you can close. Thanks for your support. Great Again! Matthias

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Show portfolio categories via the navigation’ is closed to new replies.