-
AuthorPosts
-
August 3, 2014 at 3:21 pm #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!
August 4, 2014 at 2:54 pm #299685Hi 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,
YigitAugust 12, 2014 at 8:39 pm #303410Any 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
August 12, 2014 at 8:56 pm #303417Hey!
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,
YigitAugust 22, 2014 at 6:52 pm #308032Yes, the code that i need add to the footer is the next: http://pastebin.com/a5bbWken, this only would show on SINGLE POST.
Thanks
August 23, 2014 at 7:30 am #308178Hi!
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,
IsmaelSeptember 1, 2014 at 1:03 am #311620Hello,
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
September 1, 2014 at 6:00 am #311670Hi!
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!
IsmaelSeptember 1, 2014 at 1:02 pm #311778This reply has been marked as private.September 2, 2014 at 12:50 pm #312259This reply has been marked as private.September 3, 2014 at 7:36 am #312681 -
AuthorPosts
- The topic ‘Add code only on single post’ is closed to new replies.