dbazhinov
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Astra] How can I make the mobile sub-menus expanded by default?For those looking to show the sub-menu without requiring the user to have to click the arrow key on the other side of the menu, here’s an easy CSS workaround that will force-show all sub-menus as expanded (in mobile).
Add to your CSS:
.menu-item-has-children .sub-menu {
display:block!important;
}It’s not an ideal solution, and you won’t be able to toggle/hide the sub-menus on the arrow click. If you want to hide the arrow icon altogether:
.ast-menu-toggle {
display:none!important;
}ˉ\_(ツ)_/ˉ
Forum: Themes and Templates
In reply to: [Astra] How can I make the mobile sub-menus expanded by default?Hi Deepak @brainstormteam,
Thanks for noting my idea as a suggestion! Would you happen to know of a work around for the time being?
Thank you.
Ah, my bad. Thank you!!
Nope. ˉ\_(ツ)_/ˉ
Could I trouble you to try it on a theme on your end?
Thank you.
I appreciate the swift response, thank you.
Am I missing something here? I’m unable to get the tribe category to show.function mytheme_figure_content() { echo '<figure class="post-thumbnail">'; if ("tribe_events" === get_post_type()) { tribe_get_event_taxonomy(get_the_id(), ['sep' => ', ', 'before' => '', 'after' => '']); } mytheme_post_thumbnail(); mytheme_category(); mytheme_posted_by(); echo '</figure>'; }
Correct, it returns regardless of the page or post permalink. It attempts to open it with the ?na=s for a second or two, and before loading the page it redirects back to the frontpage. I even attempted to use index.php in the url for kicks, same result. Perhaps a part of the script calls for the index.php causing the redirect to trigger?
- This reply was modified 5 years, 11 months ago by dbazhinov.
Nope. It goes to the url (tried both domain.com/newsletter/?na=s and domain.com/newsletter?na=s) and then comes back to the external front page. Email does not appear in subscribers list nor was a message ever given to the user that they were subscribed.
Care to try and see if there’s a solution?
- This reply was modified 5 years, 11 months ago by dbazhinov.
To summarize the unresolved issue: I have my main wordpress homepage (“domain.com/”) 301 redirecting to an external page where I’d like to use the subscribe form. Unfortunately, when user clicks on the button they are directed to “domain.com/?na=s” which gets automatically redirected back to my external page before the user is added to the subscription list.
I have https://mydomain.com/ redirecting to the external page. What is “?na=s”? Can I change it to a different subdirectory such as /newsletter/?na=s? I need to keep my redirect of the main site directory.
Thanks for the reply!
I get redirected to https://mydomain.com/?na=s but the email is not added to the subscribers list. Should I be including any scripts on the page?
Forum: Plugins
In reply to: [Buddy Notification Bell] What’s the print code to add to my theme?Figured it out. Used this: https://www.wpbeginner.com/wp-themes/how-to-add-custom-items-to-specific-wordpress-menus/
Basically.. just change the NAME-HERE to something and add to functions.php
add_theme_support( 'menus' ); add_filter( 'wp_nav_menu_items', 'NAME-HERE', 10, 2 ); function NAME-HERE ( $items, $args ) { $items .= '<li>' . do_shortcode("[buddy_notification_bell]") . '</li>'; return $items; }
Forum: Plugins
In reply to: [Buddy Notification Bell] What’s the print code to add to my theme?Ah, I figured out I can use this:
<?php echo do_shortcode("[buddy_notification_bell]"); ?>
Unfortunately my menu looks something like this and I’m not sure how to add that shortcode as the last “li”.. Any idea?
<!-- Navigation --> <?php wp_nav_menu( array( 'theme_location' => 'header', 'depth' => 3, 'container' => 'div', 'container_class' => 'navbar-collapse collapse', 'menu_class' => 'nav navbar-nav navbar-right menu-header', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker() ) ); ?> <!-- /Navigation -->
- This reply was modified 6 years, 8 months ago by dbazhinov.