-
AuthorPosts
-
September 22, 2017 at 11:54 am #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 !!!
September 22, 2017 at 1:34 pm #855368have 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.
September 22, 2017 at 1:42 pm #855370It’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>…. :-(
September 22, 2017 at 2:26 pm #855384see 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.
September 22, 2017 at 4:30 pm #855415September 22, 2017 at 5:32 pm #855450Thanks Guenni007 ! ;-)
I think it’s real quotation marks
Screenshot here :
http://www.pelicard.fr/wp-content/uploads/2017/09/header.jpg
http://www.pelicard.fr/wp-content/uploads/2017/09/header2.jpgSeptember 22, 2017 at 7:32 pm #855530First step I want use the shortcode without parameters… :-)
September 22, 2017 at 9:48 pm #855599by 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]'); ?> </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.
September 22, 2017 at 10:44 pm #855623Thanks 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
September 22, 2017 at 10:44 pm #855625Now it’s OK !!
<div class=’connexion’><?php echo do_shortcode(‘[lwa template=”modal” profile_link=”0″ registration=”0″]’); ?> </div>Thanks Guenni007 !!!!!!!!!!!!!!!! :-)
September 22, 2017 at 11:08 pm #855629yes – 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( )
September 22, 2017 at 11:52 pm #855633here 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 !
September 23, 2017 at 12:38 pm #855780Thanks a lot !!!! :-)
-
AuthorPosts
- You must be logged in to reply to this topic.