Paresh Sojitra
Forum Replies Created
-
Here is how it works without any issue. I hop this considered to be added in WordPress Core ? Anyone can do this how.
https://github.com/WordPress/gutenberg/assets/5764334/70dd7688-dd1c-48da-bf6a-26857683690a
I just fixed this doing some tweak. if anyone looking for this. without blocking main menu link.
I can also share if anyone still looking to this.
I have done this in latest WordPress Theme.
CSS:
@media (max-width:599px) { header .wp-block-navigation .wp-block-navigation-item { justify-content: center; } header .wp-block-navigation ul li { width: 100%; } header .wp-block-navigation .wp-block-navigation__submenu-icon { height: auto; width: auto; position: absolute; border: 1px solid #ccc; padding: 3px; right: 0; top: 4px; } header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container { display: none; width: 100%; } header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon { display: block; } }
jQuery:
/* + Document On Ready */ $(document).on("ready", function() { $(".wp-block-navigation-submenu__toggle").on("click", function() { var li = $(this).parent(); if ( li.hasClass("ddl-active") || li.find(".ddl-active").length !== 0 || li.find(".wp-block-navigation-submenu").is(":visible") ) { li.removeClass("ddl-active"); li.children().find(".ddl-active").removeClass("ddl-active"); li.children(".wp-block-navigation-submenu").slideUp(); } else { li.addClass("ddl-active"); li.children(".wp-block-navigation-submenu").slideDown(); } }); });
Forum: Plugins
In reply to: [Essential Real Estate] How to change the price formatcan you please let me know can we override or add_filter to function ?
Forum: Plugins
In reply to: [Yoast SEO] wpseo_opengraph_image filter is not WorkingThank you, I will try this solution.
Hi,
I think it must be a hosting issue, Can you please let me know what can fix in hosting.
Forum: Plugins
In reply to: [CMB2] Populate the select field with another custom post typeHi,
I Found your feedback helpful for me.
I was not getting data when i was using like following :
$cmb_edu ->add_field( array( 'name' => __( 'Related Languages', 'cmb2' ), 'desc' => 'Select an option', 'id' => $prefix . 'select_languages', 'type' => 'multicheck', 'options_cb' => cmb2_get_post_options(), ) );
But It’s working fine when i’ve done like following :
$cmb_edu ->add_field( array( 'name' => __( 'Related Languages', 'cmb2' ), 'desc' => 'Select an option', 'id' => $prefix . 'select_languages', 'type' => 'multicheck', 'options' => cmb2_get_post_options( array( 'post_type' => 'language' ) ) ) );
So we can say that the “options_cb” is not working as they have said in example of cmb2.
Anyone help me to understand what can be the problem ?
Thanks for everything.