Forum Replies Created
-
AuthorPosts
-
February 17, 2020 at 11:08 pm in reply to: Trying to Get Easy Slider to Jump to Slider on Page Load #1185455
Hi Nikko,
Thanks for responding. This fixed the issue. I was able to modify my code to work inside of slideshow.js and that got it working. Thanks for your help!
Brian
April 12, 2019 at 6:39 pm in reply to: Popup Builder Link Pops Up Wrong Popup and Redirects to New Page #1090121This reply has been marked as private.April 11, 2019 at 9:13 pm in reply to: Popup Builder Link Pops Up Wrong Popup and Redirects to New Page #1089721If you can help me to resolve this issue I’d really appreciate it. Thanks!
Hi Ismael,
Thanks for looking into this. This fix seems to have taken care of the issue. Thanks again!
Hi Peter,
Thanks for looking into this. Unfortunately, the fix seems to have broken the portfolio. I tried turning on the preload feature to see if that is the issue as well, but it wasn’t. Now, if you go to the page and click the Specialty Foods tab, it displays the logos, but if you click on a logo to view the info for that tenant the ajax portfolio piece doesn’t load. It only seems to be happening in this tab.
Thanks
Hi Peter,
I’ve added an account. The details are in the private content.
Thanks!
Thanks Ismael. That is working much better. Thanks!
Hi Ismael,
I’ve added the filter to the functions file, but it still isn’t working. Login info and credentials are in the private data from my post on August 20th in this thread.
Thanks!
Maybe it might help if I explain exactly what I want this to do. If you look at this page:
I have a set of tab panels with the portfolios inside the tabs. When you click the logo of a tenant, the ajax panel loads in and displays. In the first tab it works fine because the number of tenants in that tab is enough that the height is tall and it shows the whole ajax panel, however on the other two tabs it is not and the ajax panel gets cut off when it loads. If there a function I can call or an event to listen for when the ajax panel finishes displaying that can call a function to resize the tab panel?
Thanks for the clarification. I’ve added the portfolio folder into the shortcodes folder in the location you stated above. The portfolio folder has the following files in it:
isotope.js
portfolio.css
portfolio.js
portfolio.phpThese files have been modified this way:
portfolio.js has been modified at line 60 to change the timeout to 2000 ms
setTimeout(function() { $(window).trigger('av-content-el-height-changed'); }, 2000);
and portfolio.php has been modified from line 31-42 per the instructions in the thread above from the August 17th post above.
I’ve also added the following filter into the functions.php file for my child theme per the post from the July 19th post above in this thread, and confirmed that it is appearing in the footer code in the page:add_action('wp_footer', 'ava_auto_resize'); function ava_auto_resize(){ ?> <script> (function($){ var int = window.setInterval(function(){ $(window).trigger('resize'); $(window).trigger('av-content-el-height-changed'); }, 2000); $(window).load(function () { setTimeout(function() { clearInterval(int); }, 2000); }); })(jQuery); </script> <?php }
However, none of this has changed the fact that the ajax content that is appearing when you click a logo is getting cut off. Can you please take another look and see what the issue might be.
The credentials for the saddle creek site should be in the private post above, but if you need me to repost them I can.
Thanks.
ok, in the interests of getting this fixed quickly, I have gone back and removed the modifications form the child theme to start over. Now, just to clarify, are the modified portfolio files supposed to go here:
/themes/enfold-child/config-templatebuilder/avia-shortcodes/portfolio/
or here:
/themes/enfold-child/shortcodes
You keep saying add them into a folder called shortcodes with no reference to exactly where that folder should be, and I thought that the folder structure of the child theme is supposed to match that of the parent so that the theme registers the child file as a replacement of the parent file.
I will add the files back in wherever you tell me they are supposed to go and we will work from there. I hate restarting this process, but we are apparently not connecting on communication (I may be just misunderstanding you, I admit), but so far every fix that we’ve tried to put in for this problem has either not changed anything or made it worse, so I really need to get this resolved.
Thanks
Hi Ismael,
I didn’t copy the whole directory, but I thought the directory structure needed to match in order for the files in the child theme to replace the ones in the parent. I have a folder in my child theme for config.templatebuilder, and it has the avia-shortcodes folder in it, and then the portfolio folder there, but there aren’t a bunch of extra files, just files for any other customizations that are in place. If I am wrong about the folder structure needing to mirror the parent theme, can you please direct me to some documentation as to how the child theme’s folders should be structured for the re[placement to work? In any case, the last fix that was put in has now disabled the ajax portfolio feature and I need to get it working as soon as possible, so any assistance that you can render would be greatly appreciated.
Thanks
Hi,
Unfortunately that did not work. Now the ajax component isn’t working. If I click on the logo for one of the tenants it shows an overlay and the spinner like it is trying to load the ajax content, but then the overlay just disappears.
Also, the javascript console is showing an error now:
Uncaught TypeError: Cannot read property ‘addClass’ of undefined
at Object.show_item (portfolio.js?ver=4.9.8:201)
at a.fn.init.single_callback (portfolio.js?ver=4.9.8:282)
at $.AviaPreloader.trigger_loaded (shortcodes.js?ver=4.4.1:980)
at $.AviaPreloader.checkImage (shortcodes.js?ver=4.4.1:969)
at shortcodes.js?ver=4.4.1:964Hi,
I double checked and the filter is in the functions.php for the child theme. Were you able to find anything with the admin credentials?
Thanks!
This reply has been marked as private.Hi Ismael,
I copied the portfolio folder from the enfold theme (wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio) to my child theme (wp-content/themes/enfold-child/config-templatebuilder/avia-shortcodes/portfolio).
I added this filter to the child theme’s functions.php:
add_action('wp_footer', 'ava_auto_resize'); function ava_auto_resize(){ ?> <script> (function($){ var int = window.setInterval(function(){ $(window).trigger('resize'); $(window).trigger('av-content-el-height-changed'); }, 2000); $(window).load(function () { setTimeout(function() { clearInterval(int); }, 2000); }); })(jQuery); </script> <?php }
I then replaced the lines in the portfolio.php file in the child’s portfolio folder with the lines you posted. I’m not seeing any change in the behavior in the page though. Do you need credentials to get into the site?
Thanks,
Brian
Hi Ismael,
I have a question. I am using a child theme, and I made a copy of the portfolio.js file in my child theme and adjusted the timeout. It isn’t having any effect. Does this have to be done in the enfold theme itself, or can it be done in a child theme?
Thanks,
Brian
Hi,
I’ve tried implementing this fix on another site and it still doesn’t appear to be working. You can view the issue if you go to the following link:
If you click on either the Dining or Services tabs, and then click on the logo of one of the items in the portfolio, you will see that the panel doesn’t expand, and the content is being obscured. Can you please help me to resolve this issue once and for all as it is a recurring problem on a number of sites I am working on.
Here’s a screenshot of what I am seeing:
I already have it set that way. It is working mostly, but if you are on a different page and click on then Services item in the nav under Directory, when the page loads, it brings up the nServices tab, but the tab is still the wrong size.
Thanks Ismael, it’s working perfectly now! Now, was the change you guys made implemented in the child theme, or in the main enfold theme? If it was in the main Enfold theme, will it get wiped out if I run a theme update? If so, can I move it to the child theme and have it work? To do so I assume I would copy the code block into my child theme’s function.php file correct?
Hi Ismael,
I’ve put in the new line of code and cleared the cache, but the problems are still there. If you go to http://victorypark.wpengine.com/directory, (hosted on WPengine) you can see the problems. When the page comes up, it starts in the Restaurant tab. When you click on the logos for the different tenant businesses, the ajax portfolio loads the preview for the business. For some of the businesses, the description is longer, and it is getting cut off. For example. click on the Shopping tab in the purple bar and then select Chad Rookstool, or Joanna Czech for the logo list. Their profiles are longer and are getting cut off at the bottom. The other problem is that when you click on the Entertainment tab in the purple bar, the content space doesn’t resize like it does with the others. Can you please advise on what might be a good fix? If you need login credentials I’ve already created some for you guys to use. They are in the private comments on this thread.
Thanks,
Brian
Hi Ismael,
Thanks for sending this. I went to try it, but I cannot find the file you are referencing in the thread. I checked in enfold > config-templatebuilder but it doesn’t have a subfolder called portfolio. Can you clarify where the files is that I need to make the mods to? Also, when I make the mods, can I save the modified file in the same spot in the folder structurer of my child theme and have it work?
Hi Victoria,
I’ve made the change, but there are still issues. The resize is working the way I want it to on the Shopping and Restaurant tabs, but the Entertainment tab doesn’t resize. The Entertainment tab doesn’t have a portfolio grid like the others.
Thanks,
Brian
This reply has been marked as private.Thanks Victoria. I found the line sin the file, but I’m still not sure what needs to be changed about them here to fix the issue I’m having. Can you please assist?
-
AuthorPosts