savingyourtail
Forum Replies Created
-
Forum: Plugins
In reply to: [Premium Addons for Elementor] Lottie javascriptOk great – thank you
Forum: Plugins
In reply to: [Premium Addons for Elementor] Lottie javascriptThank you. Here is a page link:
https://savingyourtail.com/how-we-saved-on-tax-preparation-fees/
Forum: Developing with WordPress
In reply to: Hiding posts from main page/archive but not RSS feedI figured out the issue, or at least a work-around. I have a custom theme and there is custom shortcode buried in functions.php that generates the post lists. Placing the following code in the while loop that generates the posts solved the problem and now posts are being hidden as desired.
while($query->have_posts()) : $query->the_post() ; $post_ids = get_the_ID() ; $exclude_ids = array(2324,2325,2327); if(!in_array($post_ids, $exclude_ids)){
- This reply was modified 8 months, 1 week ago by savingyourtail.
Forum: Developing with WordPress
In reply to: Hiding posts from main page/archive but not RSS feedThanks for the suggestions. I’ve incorporated them all below. I tried both approaches, exclusion by category ID and exclusion by post ID, but unfortunately the posts are still visible even with these methods. (Caches were cleared & post ID’s and category ID’s double checked). What else could the problem be? Below is the updated code.
function myFilter($query) {
if (! $query->is_feed) {
$query->set('cat','-1'); //Don't forget to change the category ID
}
return $query;
}
add_action('pre_get_posts','myFilter');function exclude_posts_from_homepage($query) {
if ($query->is_home() && $query->is_main_query() && ! $query->is_feed) {
// Replace with the IDs of the posts you want to exclude from the homepage
$exclude_posts = array(2324,2325,2327); // Replace with actual post IDs
// Exclude posts from the homepage
$query->set('post__not_in', $exclude_posts);
}
}
add_action('pre_get_posts', 'exclude_posts_from_homepage', 99999);Forum: Developing with WordPress
In reply to: RSS feed editingThanks for the ideas. You mentioned that I wouldn’t want to make a custom feed template after all. What file would I need to insert the code to call get_the_content_feed() and modify it so that the modified output shows up in the RSS feed?
Forum: Developing with WordPress
In reply to: RSS feed editingThank you for the suggestion. I agree, that seems like a better approach. From reading on this, the steps to set up a custom RSS template make sense, but the PHP coding may be a challenge since I have little experience with it. Are you aware of any plugins that might ease the process of doing this?
- This reply was modified 9 months, 3 weeks ago by savingyourtail.
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowThis did the trick. The display issues are fixed, and the menu is loading noticeably faster than before. Thanks so much!
- This reply was modified 10 months ago by savingyourtail. Reason: marked resolved
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowSure. I removed the code temporarily since it had been a few days, but just added it back to the header so you can see it live. The issue appears on mobile. Also, here is a screenshot as requested:
- This reply was modified 10 months ago by savingyourtail.
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowJust an update – I added the CSS code to the header, and I feel like I can see much quicker loading of the menu on the desktop. However, when I pull up the site on mobile now, the header menu is all jumbled and the mobile menu missing. Do you think there’s a way to fix that, or would it be best to remove the CSS?
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowHi – it does appear that my optimization plugin was the source of these issues. After disabling it, the caching related issues have disappeared. Thanks for the help. One last question – on the CSS lines to load the menu in parallel, I believe I’ve added it to the site header, if I did it correctly, and I believe I may notice an improvement in speed of the menu loading. Do you recommend I keep this code even though the caching related issues have resolved?
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowHi – thanks for the reply. I’m still in the process of testing/debugging to see if the suggestions resolve the issues and if I can find a work around. Will let you know
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowThanks – but unfortunately I am still having issues after attempting to exclude this file from caching: premium-nav-menu.min.js. They may have even worsened as I can’t get the menus to show up on the homepage, both on desktop and mobile.
I tried adding premium-nav-menu.min.js to the exclusion list for my wpspeed plugin which didn’t help. I then reached out to my host (wpengine) and asked them how to exclude this file from caching. The person I spoke with initially said they can only exclude paths, arguments, and cookies. They added the premium-nav-menu.min.js file to the exclusion list, and also created a web rule setting, URI type, with value “no-store” for the path: ^/wp-content\plugins\premium-addons-for-elementor\assets\frontend\min-js\premium-nav-menu.min.js
But the issues persist. Is it possible there is another problem going on besides the caching?
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowIs there any way/setting I can use to force the menu to load in parallel with the site assets, rather than at the end after all site assets are loaded? I would like to eliminate the delayed load of the menu if testing doesn’t reveal any problems.
- This reply was modified 10 months, 2 weeks ago by savingyourtail.
Forum: Plugins
In reply to: [Premium Addons for Elementor] Menu randomly disappearing and slowI’ll give that a try. Thank you
Forum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] SpamFireWall issuesIf I don’t have an easy way to set the pages to cache for 12 hours or less, would you recommend I use the alternate mechanism to store data in the database instead of setting the cookie option to Off? Are there any disadvantages/downsides to using the alternate mechanism compared to the “Off” option? I assumed there are some, otherwise Off would not be the default setting?