Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #855337

    Hy,

    When I try to add this in /includes/helper-main-menu.php
    <div class=’connexion’><?php echo do_shortcode(‘[login_with_ajax]’); ?></div>

    I have this in the front … [login_with_ajax] but not the shortcode :-/

    Do you have any suggestions ?

    Thanks !!!

    #855368

    have a look in the surrounding of the line on which part you like to insert that if double or singel quotation marks are necessary.

    And ( i think single are ok) have a look if these are real quotation marks ! and not special character marks – because the copy paste result shows me that your quotation marks above (don’t know if this is boardsoft changing) are not normal single quotation marks ! ( Often copying code from board threads these quotation marks are changed because of not to start code. Here on board you can use the code surroundings to avoid that)

    
    <div class='connexion'><?php echo do_shortcode('[login_with_ajax]'); ?>   </div>
    
    • This reply was modified 7 years, 2 months ago by Guenni007.
    #855370

    It’s th same thing for :
    <div class=’connexion’><?php echo do_shortcode(‘[login_with_ajax]’); ?></div>
    <div class=’connexion’><?php echo do_shortcode(“[login_with_ajax]”); ?></div>

    …. :-(

    #855384

    see my edited comment above – proof the quotation marks.

    can you show us where do you want to place that code and what do you want to obtain ( i see its the plugin of Marcus Sykes – Login with Ajax) – maybe there is a different option to get what you want – if we know what.

    #855415

    Hey!


    @guenni007
    Thanks for your help :)

    Regards,
    Yigit

    #855450
    #855530

    First step I want use the shortcode without parameters… :-)

    #855599

    by the way – where did you get the shortcode :lol:

    it is [lwa]

    by the way – you can use this in functions.php of your child-theme to enter the code :

    function custom_func() {
    ?>
    <div class='connexion'><?php echo do_shortcode ('[lwa]'); ?> &nbsp;</div>
    <?php
    }
    add_action('ava_main_header' , 'custom_func');

    it is a pitty that it generates a table – not very userfriendly to style !

    i hoped that this is only divs – but also with table and tds

    function custom_func() {
    ?>
    <div class='connexion'><?php echo do_shortcode('[lwa template="divs-only"]'); ?> </div>
    <?php
    }
    add_action('ava_main_header' , 'custom_func');
    • This reply was modified 7 years, 2 months ago by Guenni007.
    #855623

    Thanks Guenni,
    I try this.

    I found the shortcode here… directly from plugin support
    https://wordpress.org/support/topic/how-to-use-template-tags/

    and “Shortcodes & Template Tags” section here

    #855625

    Now it’s OK !!
    <div class=’connexion’><?php echo do_shortcode(‘[lwa template=”modal” profile_link=”0″ registration=”0″]’); ?> </div>

    Thanks Guenni007 !!!!!!!!!!!!!!!! :-)

    #855629

    yes – and i think you can use [login-with-ajax] as well dashes not : [login_with_ajax] !

    the template tag is with underscore : login_with_ajax( )

    #855633

    here on pastbin: https://pastebin.com/3XXds8ed

    is a widget_in.php
    if you upload it to plugin directory “divs-only” folder than it is a overall divs-only solution and it is much easier to place those things.

    Means the generated code is without table design !

    #855780

    Thanks a lot !!!! :-)

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.