Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1037480
    doohikey
    Participant

    I would like to add social sharing to where I’d like it to be and not on every page or every shopping cart page. Can you help with this? I’d still like it on my blog posts.

    Thanks!

    #1037483
    doohikey
    Participant

    I’d also like to make them all one color with a color overlay.And is there a way to change the icons?

    #1037494
    Thai
    Moderator

    Hi There,

    Please add the following code under functions.php file locates in your child theme:

    add_action( "x_after_the_content_end", "add_social_sharing" );
    function add_social_sharing() {
    	echo do_shortcode('[x_share title="Share this post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    }

    Hope it helps 🙂

    #1037621
    doohikey
    Participant

    My question is I want to have this on some pages and on some pages i don’t. If you see this page I now have two shares.

    One that’s all colorful and one that’s the colorist is now. So i’m confused on what to do.

    #1037622
    doohikey
    Participant
    #1037623
    doohikey
    Participant

    I also don’t want the divider lines.

    #1037624
    doohikey
    Participant

    I’d rather control this in cornerstone is there not an option for this?

    #1037901
    Rue Nel
    Moderator

    Hello There,

    If you would rather control it in Cornerstone, please remove the custom code from your child theme’s functions.php file

    add_action( "x_after_the_content_end", "add_social_sharing" );
    function add_social_sharing() {
    	echo do_shortcode('[x_share title="Share this post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    }

    If you want a social sharing on a particular page, you can always edit that page in Cornerstone and insert the Social Sharing element. To remove the divider lines, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .site .x-entry-share {
        border: none;
    }

    Hope this helps.

    #1037941
    doohikey
    Participant

    But i can’t find where to turn off the original one that is above the custom code that I placed in the function. do you see the one above? how the heck did that get turned on.

    #1037994
    Rad
    Moderator

    Hi there,

    Hmm, I’m not sure either but I can check it for you. Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

    #1039035
    doohikey
    Participant
    This reply has been marked as private.
    #1039138
    Rue Nel
    Moderator

    Hello There,

    The custom code has been turn off. You won’t be able to see the social share element on the page now. You can check it here: http://www.doohikeydesigns.com/wistfulwinds/

    If you want to change thing in the rounded share icons, all you have to do is to go to Settings > Font Awesome Share. If you do not want to use this icons, please deactivate the WP Font Awesome Share Icons plugins.

    Hope this helps.

    #1040234
    doohikey
    Participant

    so I still see the share icons in full color… this is what I don’t want to show either. I’m so frustrated at this point. You had me add the custom, but yet.. I still have this other thing here. I’m so confused how you see this as fixed.

    #1040241
    doohikey
    Participant

    never mind i now see what you meant. not sure how i got that plugin started where its in cornerstone now. thank you. So my next question is how do I make sure it’s on all blog posts, but not my pages from now on. I will have to add it manually now? Is that correct?

    #1040758
    Friech
    Moderator

    Hi There,

    Add this code on your child theme’s functions.php file.

    /**
    Add social share icons in the end of every posts
    */
    add_action( 'x_before_the_content_end', 'add_to_single_posts' );
    function add_to_single_posts() {
    if ( is_single() ) {
    echo do_shortcode('[x_share title="Share this post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
        }
    }

    This function will output the social sharing icons in the bottom of every posts. For your pages you need to place it manually, see the Social Sharing element of Cornerstone.

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-1037480 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>