Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #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 ?
    Thanks

    #860783

    Hey 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 Shannon

    #860908

    Hello,

    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 part

    #861090

    Hi,

    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 Shannon

    #861106

    Thanks.
    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.
    #861111

    Hi,

    Please see the following:

    You would need to invoke the do_shortcode command.

    Best regards,
    Jordan Shannon

    #861115

    Ok 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/

    #862120

    Hi,

    The code has to be added on a template yes, depends on the position you want to place it.

    Best regards,
    Basilis

    #862144

    Hi,

    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.
    #863136

    Hi,

    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,
    Ismael

    #863668

    No, 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…

    #863914

    Hi,

    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,
    Ismael

    #868688

    Hello,

    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.
    #869108

    Hi,

    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,
    Ismael

    #869329

    FYI:

    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.
    #869590

    Hi 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,
    Victoria

    #869646

    Hi,

    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.
    #870169

    Hi 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,
    Victoria

    #870191

    Hi,

    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 css

    So can you help me ?

    #871478

    Hi,

    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,
    Ismael

    #871627

    Resolved
    Thank you

    #871987

    Hi,

    Glad we could help. Let us know if you need anything else.

    Thank you for using Enfold.

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Share box at the beginning of the posts’ is closed to new replies.