![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: load more
-
AuthorPosts
-
December 21, 2015 at 2:37 pm #555924
Hi there,
I really love the new load more feature button. However, when I choose that option for my masonry grid display and select the categories I want to be displayed, when you select ‘load more’ on the actual page, other categories start showing up which isn’t what I want.
Please can you help me sort this so other category entries don’t appear when you load more?
Thanks,
Krissie
December 22, 2015 at 6:29 am #556347Hey Krissie,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
RikardDecember 22, 2015 at 11:30 am #556435Hi Rikard,
The site isnt live yet. I will get in touch in the new year as I am now on holiday. I will create a login for you so you can see what I mean.So that shouldnt happen then? The load more should only load posts within the categories selected?
Im using the masonry grid and selected the categories i wanted displaying. I selected the load more option. Then when you select load more on the actual page categories appear that werent selected.
Very frustrating!
Cheers,
Krissie
December 24, 2015 at 5:38 am #557356Hey!
Thank you for the info. We are aware of the issue and it is under investigation. If you have the time, please edit the js > shortcodes.js, remove everything then replace it with this code: http://pastebin.com/2n9dyNUY
Remove browser cache then reload the page. Let us know if it changes anything.
Regards,
IsmaelFebruary 10, 2016 at 3:49 pm #581196Sorry I’m not sure where I should do that? I’m using a Child Theme.. is this shortcode.js in the main theme?
I’m a bit scared to do it. Would you mind doing it for me? Or will this be sorted in the next update? If so, I can wait if it’s not going to take too long to fix?Please let me know if you are going to try the code…
Login below.Thanks in advance!
February 10, 2016 at 3:54 pm #581199Hi!
Please refer to my post here – https://kriesi.at/support/topic/shrinking-header-on-ipad-does-not-work/#post-574636 and change file name in the code.
Best regards,
YigitFebruary 10, 2016 at 4:03 pm #581205Sorry, I don’t understand.
I should paste this into my child theme? This will fix the ‘load more’ button from displaying all categories??function wp_change_aviajs() {
wp_dequeue_script( ‘avia-default’ );
wp_enqueue_script( ‘avia-default-child’, get_stylesheet_directory_uri().’/js/avia.js’, array(‘jquery’), 2, true );
}
add_action( ‘wp_print_scripts’, ‘wp_change_aviajs’, 100 );Thanks Yigit!
February 10, 2016 at 4:07 pm #581209Hi!
No, you can edit shortcodes.js file by referring to Ismael’s post here – https://kriesi.at/support/topic/load-more-button-loads-unselected-categories/#post-557356 and then move it to your child theme by referring to my post here – https://kriesi.at/support/topic/load-more-button-loads-unselected-categories/#post-581199
Best regards,
YigitFebruary 10, 2016 at 4:12 pm #581213Okay, will this fix be implemented in the next update? It’s a bit daunting for me to do as I’m not a coder and I can’t risk mucking up the site, which is due to be launched in the next two weeks.
It is a pretty bad functionality issue, so i would have thought it would be on your priority list for an update?
Thanks
February 12, 2016 at 9:13 am #582110Hi!
Please post the ftp details so that we can add the patch. This may not be included on the next version of the theme but we have notified Kriesi regarding the issue.
Best regards,
IsmaelFebruary 12, 2016 at 10:39 am #582134Hi Ismael,
Please can you let me know what ftp details you mean? An example would be handy.
Thanks!
February 12, 2016 at 7:46 pm #582473Hi!
Please see – https://kb.iu.edu/d/aerg for more information.
And example would be
Server: http://ftp.my-domain.com
Username: my-chosen-username
Password: BritneySpearsYou can contact your hosting provider and they can provide you with FTP credentials.
Best regards,
YigitFebruary 15, 2016 at 12:27 pm #583322Ok please see private content for info :)
February 16, 2016 at 8:32 am #583949Hey!
We added the modifications in the shortcodes.js file but I can’t find any page in the site with the masonry element. We created a test page here: http://mybiz-canterbury.co.uk/test-masonry/
Best regards,
IsmaelFebruary 16, 2016 at 4:19 pm #584255Hi guys,
Sorry this still doesn’t work.
I’m also getting internal 500 error messages now. That wouldn’t have anything to do with you changing the code at all would it?Thanks for trying! Hope you get it fixed soon though.
February 18, 2016 at 6:15 am #585170Hey!
It is working before I left it. Did you manage to check the test page? A link to the actual pages with the masonry element will help.
UPDATE: I checked the test page and it looks different. Did you remove the shortcodes.js file modification?
Cheers!
IsmaelFebruary 18, 2016 at 11:07 am #585291Hey Ismael,
No I’ve not touched anything. The only thing I did was to change the masonry category that it was set up to search. I wanted to see if it can load more from within the sub-categories that I selected. Well, it didn’t work. It grabbed categories that weren’t selected.
So it’s not working still and I didn’t do anything to the code!
Sorry.. :)
February 19, 2016 at 5:44 am #585847Hi!
My bad. There are missing lines in the js modifications. We added those and it should be working. Please remove browser cache or hard refresh the test page. http://mybiz-canterbury.co.uk/test-masonry/
Best regards,
IsmaelFebruary 23, 2016 at 4:08 pm #587767I’m afraid it’s still pulling unrelated categories through when you press the ‘load more’ button. It is pulling less unrelated categories but it still doesn’t work nonetheless.
Also, on some of my masonry grids there are forward slashes separating the categories and some have bars. I prefer the bars look, how can I get this on all of my masonry grids? If you go to the Directory page and select Development.. then compare it to the Business News page, you’ll see what I mean.
Thanks!
February 26, 2016 at 6:59 am #589564Hi!
The modification that we added in the shortcode.js file has not been tested thoroughly. I just found out that it doesn’t load all selected categories. We are very sorry for the inconvenience. For now, the only workaround is to display all items in a single page without the load more button. We’ll report this back to Kriesi.
Regards,
IsmaelMarch 18, 2016 at 12:02 pm #600233Ok cool. How are things going with this?
I would also like to ask why some of the mansonry categories on my website are separated by a vertical bar and others by a forward slash? Is there any way of making them all have a vertical bar? Looks much nicer.
Cheers,
Krissie
March 18, 2016 at 2:22 pm #600295Hi!
The patch that we provided here will no longer work because Kriesi handled the issue on a different way. This is what he said on our git discussion:
I fixed it in a different way: when the user has no categories selected the new categories will be displayed once the load more button is clicked. If the user has selected categories the filter will only display the new ones if they are part of the user selection
Regarding the new issue, I’m trying to login to the site to override the maintenance mode but the login credentials are not working anymore. Please check.
Regards,
IsmaelMarch 18, 2016 at 2:25 pm #600298March 19, 2016 at 9:06 am #600630Hey!
Thank you for the info. Could you please provide a link to the actual page with the issue? I checked the “Development” page and all separators are forward slashes.
Best regards,
IsmaelMarch 22, 2016 at 1:37 pm #601852Hey Ismael,
If you see the following pages all the separators are bars – which is what I’d like on all of the masonry sorters throughout the site.
http://mybiz-canterbury.co.uk/mentors/
http://mybiz-canterbury.co.uk/news/
http://mybiz-canterbury.co.uk/events/
Many thanks,
Krissie
March 25, 2016 at 4:18 am #603536Hey!
This is possible but you have to modify the core files of the theme. Look for the helper-masonry.php file in the config-templatebuilder > aviashortcodes folder. Modify line 142:
$output .= "<span class='text-sep {$term->slug}_sort_sep {$show_item}'>/</span>";
Replace the forward slash with the pipe symbol.
Best regards,
IsmaelMarch 30, 2016 at 11:13 am #605075Hi Ismael,
Thanks for the help. Thing is I don’t want to have to update this every time there is an update. Can I make the amend in the child theme?
March 31, 2016 at 4:57 am #605615Hi!
Alright. Please try this in the functions.php file:
// pipe add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($){ function b() { $('.av-sort-by-term').find('.text-sep').empty().text('|'); } b(); })(jQuery); </script> <?php }
Regards,
IsmaelMarch 31, 2016 at 9:11 am #605724Yes, it’s worked!!! Thanks so much Ismael, you rock!
Whoop whoop!
I’m a happy bunny. Let’s hope now that Kriesi works out a way of making the masonry load more buttons work better but I’m good for now.
Thanks and all the best!
March 31, 2016 at 10:28 am #605759Hey!
That’s Great! and glad we could help you with this… Please feel free to request such feature here – https://kriesi.at/support/enfold-feature-requests/ And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
Cheers!
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.