Serge Liatko
Forum Replies Created
-
Forum: Installing WordPress
In reply to: WordPress strange problem that i can't identify !What security plugin do you have activated?
Forum: Plugins
In reply to: [WooCommerce] List each filename per downloadable product?perfect, thank you so much for saving me an hour!
Hi for thesis 2 you may use this box which gives you more control over how wp featured image is displayed : https://thesisimage.com/
for thesis 1.8.x you have this plugin to insert featured image url into thesis post image custom fields : https://thesistut.com/store/wordpress-featured-image-thesis/
feel free to contact me from those websites if you have further questions
Forum: Plugins
In reply to: [WooCommerce] Using Woocommerce with Thesis 2.0see video here about the integration Woocommerce Thesis Integrator
Forum: Plugins
In reply to: [WooCommerce] Using Woocommerce with Thesis 2.0having a developer option there for 3 years already (and still not having the access to their betas) I do not really care what they do about the integration as already finished the “integrator” myself… lol
Forum: Plugins
In reply to: [WooCommerce] Using Woocommerce with Thesis 2.0the link to the post where you have screen shots and videos Integrate Woocommerce into Thesis 2 theme
Forum: Plugins
In reply to: [WooCommerce] Using Woocommerce with Thesis 2.0I had the same issue, so I coded the integrator plugin for that, now you may use thesis 2 with woocommerce . See details on my blog : https://thesistut.com/blog/
Forum: Fixing WordPress
In reply to: Blog tab gets highlighted in nav menu for custom post typesyou welcome, it is all about the coding phylosophy :
do not base you code on assumptions (see the core file backward compat example)
try to be flexible (do not get into where you do not need to be)??
cheers,
sergeForum: Fixing WordPress
In reply to: Blog tab gets highlighted in nav menu for custom post typesyes a ticket on that would be nice
Forum: Fixing WordPress
In reply to: Blog tab gets highlighted in nav menu for custom post typesthanks for trying to help on that, you have shown me the only available filter in there (yes, there is no other way to hook into the css class creation)
finally solved with this php (forces wp to remove the current_page_parent class if the content is not related to blog posts)
function custom_fix_blog_tab_on_cpt($classes,$item,$args) { if(!is_singular('post') && !is_category() && !is_tag()) { $blog_page_id = intval(get_option('page_for_posts')); if($blog_page_id != 0) { if($item->object_id == $blog_page_id) { unset($classes[array_search('current_page_parent',$classes)]); } } } return $classes; } add_filter('nav_menu_css_class','custom_fix_blog_tab_on_cpt',10,3);
Forum: Fixing WordPress
In reply to: Blog tab gets highlighted in nav menu for custom post typesBTW there is no filter in there? well done!
Forum: Fixing WordPress
In reply to: Blog tab gets highlighted in nav menu for custom post typeswell, now imagine i have plugs for clients that create their content types? hwo would i code this stuff?
the simplier way (not the best one as implies corehacking) is to comment out the backward compatibility for adding curent_parent_item class to home page for blog posts if visitor is on anything but the static page (post type === page) :
see the nav-menu-template.php from line 398 :
// back-compat with wp_page_menu: add "current_page_parent" to static home page link for any non-page query if ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id ) $classes[] = 'current_page_parent';
even the comment is little “outdated” as “static home page” here is actually dynamic home page for posts… those who care for support menu highlights in themes working with wp_page_menu() …. update the theme !
to fix :
commented out the snippet and it has dissapeared!
NOTE : would be nice to deprecate it once for all!