-
AuthorPosts
-
October 5, 2017 at 10:57 pm #860768
Hello,
by default at the bottom of all posts there is the share-box. What could I do to get it ALSO at the beginning : between title and text ?
ThanksOctober 5, 2017 at 11:49 pm #860783Hey Anton,
Please provide a link to the site in question as well as admin info so we can look into this further and try to work out for you.
Best regards,
Jordan ShannonOctober 6, 2017 at 9:14 am #860908Hello,
for example if you look at this post (http://www.newpointdeview.com/pro-en/intercultural-compentence/cultural-analysis-economic-paradoxes/) I want to replace my FB and Tweeter buttons (a plugin) with native share-box.
Admin details in private partOctober 6, 2017 at 5:18 pm #861090Hi,
What you can do is enable debug mode so you can get the shortcode of the social share element. You would then simply copy that and place it wherever you would like it to appear like you did with the previous plugin.
Best regards,
Jordan ShannonOctober 6, 2017 at 6:10 pm #861106Thanks.
Could you help me with inserting the following shortcode in single.php (child theme) ?[av_social_share title='' style='' buttons='custom' share_facebook='aviaTBshare_facebook' share_twitter='aviaTBshare_twitter' share_pinterest='aviaTBshare_pinterest' share_gplus='aviaTBshare_gplus' share_reddit='aviaTBshare_reddit' share_linkedin='aviaTBshare_linkedin' share_tumblr='aviaTBshare_tumblr' share_vk='aviaTBshare_vk' share_mail='aviaTBshare_mail' custom_class='' admin_preview_bg=''] [av_hr class='invisible' height='20' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' font='entypo-fontello' custom_class='' admin_preview_bg='']
Actually, FYI: I haven’t inserted the plugin’s buttons in my child theme. The plugin did it automatically…
- This reply was modified 7 years, 2 months ago by Anton.
October 6, 2017 at 6:13 pm #861111Hi,
Please see the following:
You would need to invoke the do_shortcode command.
Best regards,
Jordan ShannonOctober 6, 2017 at 6:18 pm #861115Ok for the code.
But where I have to put it in the single.php ?
How can I make it appear between the title and Index box ?
http://www.newpointdeview.com/pro-en/intercultural-compentence/cultural-analysis-economic-paradoxes/October 9, 2017 at 9:35 pm #862120Hi,
The code has to be added on a template yes, depends on the position you want to place it.
Best regards,
BasilisOctober 9, 2017 at 10:03 pm #862144Hi,
I’d like it here: https://www.dropbox.com/s/l5oywes70szwfc0/ScreenShot_20171009220143.png?dl=0
- This reply was modified 7 years, 2 months ago by Anton.
October 12, 2017 at 5:17 am #863136Hi,
Thank you for the info. Looks like you managed to moved it below the post meta info as described in the screenshot. Is that correct?
Best regards,
IsmaelOctober 12, 2017 at 10:52 pm #863668No, this is the place where I’d like to put Enfold sharing box. And I don’t know where and what code I have to put…
October 13, 2017 at 12:58 pm #863914Hi,
Please edit the includes > loop-index.php file, look for this code around line 278.
//share links on single post avia_social_share_links();
Move it below line 117.
if(!empty($before_content)) echo ' <div class="big-preview '.$blog_style.'">'.$before_content.'</div> '; }
Best regards,
IsmaelOctober 25, 2017 at 12:43 pm #868688Hello,
and how can I do it in my Child theme ?
► Do I copy past the whole loop-index.php in my child theme and then change the code as you mentioned ? I mean that if I copy-paste the entire file in the Child theme, will the future updates be taken into account ?
► Or can I simply create a loop-index.php file in my Child theme putting there a particular code regardless the lines 117 and 278 ?- This reply was modified 7 years, 1 month ago by Anton.
October 26, 2017 at 7:54 am #869108Hi,
You need to create an “includes” folder in the child theme and then create a duplicate of the “loop-index.php” file inside.
Best regards,
IsmaelOctober 26, 2017 at 9:39 pm #869329FYI:
I’ve put the code
//share links on single post avia_social_share_links();
after the line 253 and not 117. Otherwise the sharing bar is placed above the title of the post.
QUESTION:
what code do I have to add in order to avoid the sharing bar stuck to the first line of the post? (like here or here or here)
And here I’m not talking about css, I would need a php code to really separate the sharing bar from the post.- This reply was modified 7 years, 1 month ago by Anton.
October 27, 2017 at 2:37 pm #869590Hi Anton,
Not sure what code do you mean. Could you please attach a mockup of what you’re trying to achieve? Where do you want to put the sharing links?
Best regards,
VictoriaOctober 27, 2017 at 4:18 pm #869646Hi,
I want to create (with php code and not css) this gap between the sharing box and the beginning of the post text, by opposition to what I have right now.
This is my present code in loop-index.php from the line 237:
if(!empty($cats)) { echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." "; echo $cats; echo '</span><span class="text-sep text-sep-cat">/</span>'; } echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" >'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>'; //share links on single post avia_social_share_links(); echo '</span>'; echo '</header>';
- This reply was modified 7 years, 1 month ago by Anton.
October 29, 2017 at 7:04 pm #870169Hi Anton,
I am not seeing the gap, https://cl.ly/3F393R0Z2Z2f
Looks fine, which browser is that and what screen size?
Could you please clear the cache, check again and get back to us.If you need further assistance please let us know.
Best regards,
VictoriaOctober 29, 2017 at 7:59 pm #870191Hi,
You don’t see the gap, because there is no ANY gap. And this is exactly what i NEED.
If you refer to my privious post, I wrote: “I WANT TO CREATE the gap between the sharing box and the beginning of the post text” and I also put the link to picture with a gap I need to create with php code and not cssSo can you help me ?
November 2, 2017 at 3:17 am #871478Hi,
Thank you for the update. Please use the following css code to create some space between the share icon and the container underneath.
.su-box.su-box-style-default { margin-top: 75px; }
Best regards,
IsmaelNovember 2, 2017 at 1:01 pm #871627Resolved
Thank youNovember 3, 2017 at 5:39 am #871987 -
AuthorPosts
- The topic ‘Share box at the beginning of the posts’ is closed to new replies.