Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #782866

    Hi,

    I have old blog entries (events) comming up with sharing function. I want to use the sharing function only with new entries.
    On WP I can’t do the settings of it. With Enfold (WP backend) I can just switch the sharing function on or off (admin.php?page=avia#goto_blog -> Share links at the bottom of your blog post).

    Please give me a hand. Any advise would be appreciated.

    Greetings from Germany,
    John

    #783253

    Hi John,

    I’m not sure I understand what you mean, could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #850721

    Hi Rikard,

    today I enclosed you the relevant information. Hint is dropped into the private content box.
    Please have a closer look here too.

    Have a nice day.

    Best regards,
    John

    #851358

    Hi,

    I have old blog entries (events) comming up with sharing function. I want to use the sharing function only with new entries.

    This is possible but you have to modify the includes > loop-index.php file, look for this code around line 281:

    //share links on single post
    avia_social_share_links();
    

    Replace it with:

    //share links on single post
    $publish = get_the_date( 'j F Y', $the_id );
    if( strtotime( $publish ) > strtotime( "12 September 2017" )) {
        avia_social_share_links();
    }
    

    The sharing section will only display if the publish date of the post is later than September 12 2017.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.