• Resolved mauryg

    (@mauryg)


    I am trying to use PMPro with the AccessPress Parallaz theme. If I place the short code for membership levels on a new page, it works perfectly. But if I use that page in the parallax front page all that shows is the shortcode. However, if I use a page with a shortcode from Visual Form Builder on that page, it works perfectly. So it doesn’t appear to be a problem with the theme. I have placed both pages at the bottom of the home page on the test site. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi Maury,

    When you place the shortcode in a parallax front page is that a theme page template type that you may select?

    How is the parallax being created?

    Plugin Author Andrew Lima

    (@andrewza)

    Does your page builder look something like this, where each shortcode is in it’s own row –

    [membership]

    ** Another row with element (i.e. parallax)**

    [/membership]

    Thread Starter mauryg

    (@mauryg)

    Hi Andrew,
    Thank you for the help.
    The Parallax Pro theme uses ‘pages’ to create the parallax home page (with a slider available at the top). So each element is a page. Even the intermediate images are blank pages with a background image. The only thing on the Membership Levels page is the shortcode [pmpro_levels]. The theme template for the page is ‘default’ but even if I try a different template the result is the same. In the parallax section there are multiple ‘layout’ styles available including ‘default’ and ‘blank’ but the only one that works to show the code is ‘default’. It’s a typical parallax theme. And as I said before, it’s not simply because it’s a shortcode because right below is the Membership Form which is generated by a shortcode from Visual Form Designer. I’m stumped by this one.
    Is there a difference in the way that PMPro generates the page compared to other shortcodes? When I examine the source code the [prmpro_levels] shortcode is simply wrapped in <p> tags inside a <div> whereas the form shortcode is wrapped in a <div> with CSS styling:

    <section class=”parallax-section default_template” id=”section-4149″>
    <div class=”section-wrap clearfix”>
    <div class=”mid-content”>
    <h2 class=”parallax-title”><span>Membership Levels</span></h2>
    <div class=”parallax-content”>
    <div class=”page-content”>
    <p>[pmpro_levels]</p>
    </div>
    </div>
    </div>
    <div class=”content-area”>
    </div><!– #primary –>
    </div>
    </section>

    • This reply was modified 7 years, 11 months ago by mauryg.
    Plugin Author Andrew Lima

    (@andrewza)

    Hey Maury,

    Sorry for the delayed response.

    I think your next bet will be to use the method pmpro_hasMembershipLevel() within your page templates and control content like that.

    Here is a code example that you’d add to your page template –

    <?php 
    if(pmpro_hasMembershipLevel())
    {
    ?>
    //Place your HTML or PHP code here if the user is in the required membership level
    ...
    <?php 
    }
    ?>

    Hope this helps ?? I have reached out to the lead developer of PMPro to look into this for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PMPro and shortcodes’ is closed to new replies.