• Hi,

    I’m using the Some Plus Report Post shortcode directly in my theme PHP template:

    <?php echo do_shortcode('[sprp_report class="softfully-report-button"]'); ?>

    Auto Append Report Button is disabled.

    The shortcode-generated Report Post button is visible on desktop, but it is completely missing on mobile.

    My CSS for the button is:

    .sprp-wrapper {
    display: block;
    float: right;
    width: 100%;
    margin: 15px 0;
    clear: both;
    text-align: right;
    }

    I also tested:

    .sprp-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    }

    but the button still does not appear on mobile.

    There are no responsive rules in my CSS that hide .sprp-wrapper, .sprp-button, or .softfully-report-button.

    Could you please check whether the [sprp_report] shortcode has any device-dependent rendering, viewport detection, or JavaScript condition that could prevent the button from being output/displayed on mobile or tablet?

    I want the same single shortcode-generated Report Post button to appear on desktop, mobile, and iPad, without using Auto Append.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author someplus

    (@someplus)

    Hi @vijaiya,

    Thank you for reaching out!

    I checked the plugin codebase: the [sprp_report] shortcode and plugin styles contain no device-dependent logic, no wp_is_mobile() checks, and no responsive CSS rules that hide the button on mobile or tablet devices. The exact same HTML markup is rendered regardless of screen size.

    Here are the most common reasons why the button might not appear on mobile:

    1. “Already Reported” Check / IP Filtering:
      If a test report was previously submitted for this post from your mobile device (or via your mobile IP address), the plugin intentionally hides the button (render_button() returns empty output).
    • If you are logged in as admin on desktop but testing as a guest on mobile, try opening the page in Incognito/Private mode or delete your previous test reports from the WordPress admin dashboard (Reports menu).
    1. Template Loop Context:
      If the shortcode is called in your theme template outside the standard WordPress Loop (where get_the_ID() might return 0), the shortcode previously had trouble detecting the post ID.
    • We have just released an update (v1.6.6) that improves post ID resolution when used in template parts and custom headers.
    • You can also explicitly pass the post ID in your template:
      php<br><?php echo do_shortcode('[sprp_report post_id="' . get_queried_object_id() . '" class="softfully-report-button"]'); ?><br>
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.