mayurjango
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Page Cache] Browser caching isn’t working for JS and CSS filesThank you for your response.
I’m well aware of the instructions mentioned on the plugin settings page.
My only point is how come browser caching is working for images when it’s disabled for all other static assets?
Forum: Themes and Templates
In reply to: [Hueman] Hide category name on category pages and on postsTry adding this to your custom CSS
.archive .page-title {
display: none;
}.post-meta .post-category {
display: none;
}.page-title .meta-single li {
display: none;
border-bottom: none;
}Forum: Themes and Templates
In reply to: [Hueman] Twitter button missing from social share barThanks a lot Alex and Hendy. Fixed it! ??
Hi bdbrown,
That worked like a charm.
Thanks a lot! ??
Forum: Themes and Templates
In reply to: [Hueman] How to Add Facebook Like button to Sharrre Social menuHi bdbrown,
Thanks for helping once again.
I explained so deeply like a noob and you wrapped it off in one line!! ??
Hi bdbrown,
That worked and I applied some custom css to fit as per my needs.
Now, I just want to replace “Related Posts” text with “YOU MAY ALSO LIKE…” text (along with hand icon) as shown in Hueman.
How to do that?
Thanks
Ok bdbrown, Thanks. ??
Hi bdbrown,
What should I modify or add in below code from functions.php to show related posts by titles as well as tags and/or categories?
/* Related posts /* ------------------------------------ */ if ( ! function_exists( 'alx_related_posts' ) ) { function alx_related_posts() { wp_reset_postdata(); global $post; // Define shared post arguments $args = array( 'no_found_rows' => true, 'update_post_meta_cache' => false, 'update_post_term_cache' => false, 'ignore_sticky_posts' => 1, 'orderby' => 'rand', 'post__not_in' => array($post->ID), 'posts_per_page' => 3 ); // Related by categories if ( ot_get_option('related-posts') == 'categories' ) { $cats = get_post_meta($post->ID, 'related-cat', true); if ( !$cats ) { $cats = wp_get_post_categories($post->ID, array('fields'=>'ids')); $args['category__in'] = $cats; } else { $args['cat'] = $cats; } } // Related by tags if ( ot_get_option('related-posts') == 'tags' ) { $tags = get_post_meta($post->ID, 'related-tag', true); if ( !$tags ) { $tags = wp_get_post_tags($post->ID, array('fields'=>'ids')); $args['tag__in'] = $tags; } else { $args['tag_slug__in'] = explode(',', $tags); } if ( !$tags ) { $break = true; } } $query = !isset($break)?new WP_Query($args):new WP_Query; return $query; } }
Please help.
Hi bdbrown,
wow… That worked finally! I’m also learning a bit of CSS now, all credits to you. ??
Now have everything exactly as I thought.
But I’m amazed to see that so many elements are required here just to center the logo in nav menu. Can you tell, why so?
Anyways, Thanks a ton for your help. ??
Hi,
Please help me center align the logo when viewing on mobile on all pages except home.
Test site: test.webtrickz.com
Edit: Fixed 3rd one. I missed
</a>
at the end in header.php. ??Help me with just #1 query.
Hello bdbrown,
1. The header logo in navigation menu is visible on all pages except home. I want to center align it but can’t figure out how to do that.
Screenshot: https://goo.gl/pTt3ZL
2. Surprisingly, that worked now.
3. Could you please guide how to remove that anchor tag. Things seem fine in Appearance > Menus though.
Also, could you please check and tell if my live site webtrickz.com also has such multiple unassociated anchor tags in the topbar or not?
I really appreciate your help. You’re awesome sir. ??
Thanks bdbrown, that worked! ??
Hi bdbrown,
I guess that would be pretty complicated for me. Is it possible to set the posts to be related by titles as well as tags and/or categories?
Added it in addition to above code but it doesn’t make any change at all.