savingyourtail
Forum Replies Created
-
Hi, yes – I am no longer seeing the forced reflow. Thank you!
Hi, thanks for the reply. Unfortunately “Show email existence alert” was already disabled for me so that must not have been the cause. Could there be another cause of the forced reflow?
Thank you – I disabled the mega menu for the Categories item and this caused the icons to reappear. That’s what I needed.
Hi,
If I open the icon selector up in the premium add-ons menu, most of the icons are titled either dash or fa. So I believe they are from dashicons.css and font-awesome.css.
The category listings show up under Appearance > Menus. I’ve been trying to add the icons by selecting the Premium Menu button next to each category listing, then selecting the icon of interest.
Hi, sure. Here’s the short code. I checked and no, the icons are not visible in the template editor nor frontend pages.
// dynamic submenu under category in header
function catlist(){
$taxonomy = 'category';
$orderby = 'name';
$show_count = false;
$pad_counts = false;
$hierarchical = true;
$title = '';
$args = array(
'taxonomy' => $taxonomy,
'orderby' => $orderby,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'title_li' => $title
);
?>
<ul class="custom_cat_menu">
<?php wp_list_categories( $args ); ?>
<li id="premium-nav-menu-item-373" class="articles_btn menu-item menu-item-type-custom menu-item-object-custom premium-nav-menu-item premium-sub-menu-item">View All Articles
</ul>
<?php
}
add_shortcode( 'catlist_shortcode', 'catlist' );Is it possible for the developer to modify the plugin in a way that deactivates unused code in a future update? This is the only plugin on my site, and I have many, that has unused code showing up in pagespeed insights without a way to disable those elements. And I have some really big plugins that I’m only using a few features of, so I think this is a common practice in other plugins that helps ensure optimal site performance. Thanks
Both of these changes eliminated my issue/warning on pagespeed insights. Thanks!
Hi, I tried this code, but it appears to have broken some of the sassy share features, for example the copy link button and the “more” share options button, so I had to remove it. (Though strangely, other share icons still worked). I guess this means there are some code elements within sassy-social-share-public.js that are -not- unused? Is it possible to strip out only these unused javascript within the .js file?
Thanks – do you have an estimated date of when the next plugin update with a fix for this should be released?
I actually have very little elements/widgets enabled on HT Mega but am still getting this error about Lazy Loading on image magnifier / image comparison in WP Rocket.
I only have these elements enabled: Ads Banner, Button, Search, Animate Heading
And only this third party widget enabled: bbPress- This reply was modified 10 months, 3 weeks ago by savingyourtail.
Thanks for the reply. I checked and I do not have either of those widgets enabled on my site. (Image magnifier or image comparison). Do you think it’s an error then that the lazy loading is being disabled? Please let me know if you need any additional info.
Ok great – thank you
Thank 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 1 year, 10 months 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);