
Tagged: ajax portfolio, navigation
-
AuthorPosts
-
June 17, 2025 at 7:26 am #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:
June 17, 2025 at 7:43 am #1485554Hey 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,
IsmaelJune 17, 2025 at 8:42 pm #1485588I 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.
June 18, 2025 at 6:52 am #1485610Hi,
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,
IsmaelJune 18, 2025 at 7:42 am #1485616ok – then a link to a page to which the question refers would have been helpful.
http://wordpress.p691093.webspaceconfig.de/portfolio_entries/harfen-treppen/June 18, 2025 at 7:46 am #1485617June 18, 2025 at 7:53 am #1485618Yes 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 morningJa 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.June 18, 2025 at 7:57 am #1485620Hi,
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,
IsmaelJune 18, 2025 at 8:05 am #1485621Hello 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
June 18, 2025 at 7:52 pm #1485650Hi,
It sounds like Ismael was able to help. shall we close this thread then?Best regards,
MikeJune 23, 2025 at 9:55 am #1485788Yes, you can close. Thanks for your support. Great Again! Matthias
-
AuthorPosts
- The topic ‘Show portfolio categories via the navigation’ is closed to new replies.