KS
Forum Replies Created
-
I’ve seen similar support topics for other plugins, the solution generally seems to be adding $post to the conditional, ie changing:
if( $post->post_type == EM_POST_TYPE_LOCATION ){
to:
if( $post && $post->post_type == EM_POST_TYPE_LOCATION ){
If I do this, the author pages show correctly.
- This reply was modified 2 years, 2 months ago by KS.
Forum: Plugins
In reply to: [WP Extended Search] No authors in resultHi Sumit, many thanks for the reply!
What I’m thinking of are the standard WordPress author pages, eg https://example.com/author/john-doe/ What I would have imagined if I search for “John Doe” with “Search in Author display name”, is that one of the search results would be the link to their author page.
It seems that some search plugins do this, but generally it seems to be a pro feature.
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] Shortcode variablesHi Sumit, many thanks for your reply!
I finally figured out where to activate shortcodes for individual menus under Menu > Settings > General Settings > Display condition > Use as shortcode.
Then instead of using theme locations, I created two identical mobile menus, linking them to two different WordPress menus. After that I could query the two different shortcodes with a conditional:
if ( is_page(123) ) { echo do_shortcode('[rmp_menu id="xxx"]'); } else { echo do_shortcode('[rmp_menu id="yyy"]'); }
It’s a bit more redundant since I need to set up multiple mobile menus, but it solves my problem.
Thanks for providing this plugin!
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] Shortcode variablesHi Sumit, many thanks for the reply. I finally had a chance to look at this issue again, as we delayed the functionality.
I have updated to v. 4.1.11, unfortunately it doesn’t seem to solve the issue. Although it looks like in the code, that the theme location for the plugin should be “mobile”, if I use:
if( 'mobile' == $args['theme_location'] ) { $args['theme_location'] = 'menu-alt'; }
it doesn’t seem to override the selected menu. Is it possible to query the theme_location for the responsive menu like that in functions.php?
As for the second issue about shortcode, I don’t see the menu setting listed here https://responsive.menu/knowledgebase/using-the-shortcode/ any longer? Unser Settings > Advanced Settings > Technical I only see PRO options (I use the free version) and there is nothing about enabling a shortcode for the menu. On the menu overview page, it says “Shortcode deactivated”.
Any help would be appreciated!
Forum: Plugins
In reply to: [Responsive Menu - Create Mobile-Friendly Menu] Move plugin sidebar itemHi Sumit, many thanks for the reply!
Perhaps it could be a consideration for the future – while a great plugin and functionality, it doesn’t seem warranted to show so prominently in the admin sidebar. To me, it would make more sense to keep the plugin menu item under Appearance (together with core menu), Settings or towards the bottom (like many other much larger plugins). Just a thought.
Hello Hannah, that’s very kind of you, however in this case I have already solved it with a bit of CSS. My main consideration was more whether the logic behind how gaps get calculated could be improved. But perhaps my issue was more of an anomaly.
Hi Karla, thanks for the reply!
The problem with just removing gap between on mobile, is that depending on the length of the button labels, one doesn’t know exactly when buttons will stack. That might be above or below 768px. If I have numerous buttons with long texts, they might stack already before 768px.
Perhaps there isn’t a universally clean way of solving this.
Hello and thanks for the reply! I actually just realised that it’s possible to set “Gap Between Next” for each button, beforehand I thought it was a general value for all buttons.
Perhaps that makes it a bit tricker to solve. The issue I’m having is when buttons stack (which might happen on Desktop or Mobile), the margin is always added to right-hand side. The last button gets margin-right 0 and buttons get misaligned https://pasteboard.co/ygjFzHPD2iMo.png
My initial thought about splitting the margin and adding half to each side rather than just right-hand side gets a bit more complicated if buttons have different gap-between-next.
Hi @michaeltarongoy,
I couldn’t quite pinpoint what in the block settings was wrong, but something was breaking the image change before device sizes. It didn’t seem to matter what I changed. However, when I recreated the setup from scratch, I got it to work.
Many thanks for pointing me in the right direction and ruling out a bug.
Forum: Fixing WordPress
In reply to: Colours in quote blocksHi @t-p , many thanks for the reply!
I didn’t know one could transform the quote block that way, that’s interesting. I must admin that I don’t find it quite logical, having to transform the block into a group to change the text or background colour – rather than simply having the colour palette directly in the quote block?
In my use case, I have an SVG image added into the quote block (via the render_block filter). I want its fill colour to use the text colour I select for the quote text. Transforming the quote into a group block, I can now update the quote text colour and it changes my SVG colour, so that works now – thanks! To my mind, it would still make more sense if one could add the colour palette directly to the quote block instead.
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Site Health Issue@shalam I came across this post https://www.ads-software.com/support/topic/critical-issue-4/#post-12934846, it seems like it’s a potential WP bug. Trying this code snippet removed the errors.
- This reply was modified 3 years, 10 months ago by KS.
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] Site Health Issue@shalam, I would be very interested to hear if you found a solution to this. We’re using latest WP, PHP 7.4, everything up-to-date and getting the same error messages when using the Send PDF plugin.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] GDPR popup layer issuesHi Ahmed, many thanks for your quick reply!
Here is what the header looks like:
https://pasteboard.co/IOHdsaS.pngIf clicking on it, the popup opens up OK (simulated mobile view), but not in all browsers:
https://pasteboard.co/IOHec2X.pngNot sure if it’s relevant, but here is the code for the RR-div class, and its HTML:
https://pastebin.com/raw/mJ261XQEAny input you can offer would be useful, thanks.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Redirect on successMany, many thanks for this Patrick, exactly what I was looking for! That it perhaps shouldn’t have gone in the header I should have thought of, but that add_action (em_booking_form_footer) I hadn’t managed to find. Thanks a lot for your input, have a nice day!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Redirect on successThanks a lot for the reply! I added the following code to functions.php:
function event_form_redirection(){ ?> <script type="text/javascript"> jQuery(document).ready( function($){ jQuery(document).bind('em_booking_success', function() { window.location.href = "https://www.mywebsite.com/thank-you/"; }); }); </script> <?php }; add_action('wp_head', 'event_form_redirection');
and it redirects fine. What I can’t figure out is how to only show this code snippet on EM event pages. When searching, I found a lot of shortcodes, but no template conditionals? Would you have any tips for the code above, to make it only show on event pages?