Support » Plugin: Janrain Social Login » Insert Janrain Engage into WordPress Theme?

  • Resolved Tevya


    I noticed there is shortcodes for inserting the social login into a page or post. Is there a way I can insert a small amount of PHP code into my theme to do the same thing? Inserting in a page/post is nice, but then you have to do it on every, single page/post if you want it to show on each one. However, putting it in the theme file, makes show up on all pages/posts automatically. That’s what I want to do: allow people to login at the bottom of each page or post, as part of a custom message I display to all non-logged-in users. I assume the widget just uses some PHP, is there a way to get that php to insert elsewhere in the theme? Or even whatever code the shortcode activates when recognized by the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php do_shortcode('[enter-shortcode-here]'); ?>
    Might work. Just add that to your theme template.



    I actually just did “view source” on the login page and extracted the HTML on the Janrain Engage section, then pasted it into my theme file and it works great.

    But I had no idea you could put shortcodes into the PHP! That’s awesome, thanks for telling me.

    Oops, made a mistake in that code. It should be:

    <?php echo do_shortcode('[rpxlogin redirect="" prompt="Authenticate!" style="large"]'); ?>

    using the example rpxlogin shortcode.

    And I can confirm that it does in fact work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Insert Janrain Engage into WordPress Theme?’ is closed to new replies.