Tagged: , ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #299348

    Hello, i need add a sharing bar like this (http://www.wpexplorer.com/optinmonster-review/) when scroll a few.

    The problem is that i know how i code this but i need add the code in the footer of single post only, i need that only show in single post, how can i do this in enfold theme ? Is a few difficult.

    Please support me, thanks!

    #299685

    Hi avanzamas!

    You can use following code in your function

    if(is_single() && get_post_type() == "post")
    {	
    	YOUR CODE GOES HERE 
    
    }

    If we see the code you have, we may help you better

    Regards,
    Yigit

    #303410

    Any code in this function say error:

    Parse error: syntax error, unexpected ‘}’ in /home1/davidrl/public_html/wp-content/themes/enfold/functions-enfold.php on line 14

    Please say me another location to place a code only on single post.

    Thanks

    #303417

    Hey!

    Can you paste the code on http://pastebin.com/ and post the link here so we can take a look at the code you are using?

    Regards,
    Yigit

    #308032

    Yes, the code that i need add to the footer is the next: http://pastebin.com/a5bbWken, this only would show on SINGLE POST.

    Thanks

    #308178

    Hi!

    You can add this at the very bottom of functions.php:

    function ava_add_social_icon() { 
    
    if(is_single()) {?>
    
    <div id="compartirfooter">
     
            <div id="contenedorcf">
           
                    <span class="av-icon-char" id="iconocf" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>
                    <span id="txcf">Comparte este Post:</span>
                   
                    <span class="av-icon-char" style="color:#4099FF; font-size:15px;line-height:15px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> <a target="_blank" href="https://twitter.com/intent/tweet?original_referer=<?php the_permalink(); ?>&related=davidrandulfe&text=<?php the_title(); ?>&tw_p=tweetbutton&url=<?php the_permalink(); ?>&via=davidrandulfe" id="twcf">Twitter</a>
           
                    <span class="av-icon-char" style="font-size:15px;color:#3B5998;line-height:15px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> <a target="_blank" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" id="fbcf">Facebook</a>
                   
                    <span class="av-icon-char" style="color:#D34836;font-size:15px;line-height:15px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> <a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" target="_blank" id="gcf">Google+</a>
                   
                    <span class="av-icon-char" id="iincf" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> <a href="http://linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank" id="incf">Linkedin</a>
                   
                    <span id="subircf"><a href="#top" class="av-icon-char" style="color:#444;text-decoration:none;font-size:20px;line-height:20px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></a></span>
                   
            </div>
    
    </div>
    
    <?php } }
    
    add_action('ava_after_content', 'ava_add_social_icon');

    Regards,
    Ismael

    #311620

    Hello,

    I have another problem! The theme dont sent the forms, dont work PHP, can you check it ? I test with enfold form and with contact form 7 and any work… What happen ?

    URL for test: http://davidrl.com/contacto

    Thanks a lot

    #311670

    Hi!

    Thank you for using Enfold.

    If it’s not working with the Contact Form 7 plugin, you need to check the server configuration. Our contact form use the standard wp_mail function: http://codex.wordpress.org/Function_Reference/wp_mail to send emails. Please contact your server administrator for more info. Also, switch to the default theme and test if the CF7 plugin is working.

    Cheers!
    Ismael

    #311778
    This reply has been marked as private.
    #312259
    This reply has been marked as private.
    #312681

    Hey!

    Looks like you’re not using the default theme forms. I’m sorry but we don’t provide support for third party plugins or scripts as stated on our support policy. Please contact the script author.

    Regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Add code only on single post’ is closed to new replies.