Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #12007

    Hi Guys,

    Please see attached link:

    http://tools.davidnaylor.co.uk/keyworddensity/index.php?url=http://joeligammari.com/fine-art-photography-prints/featured/verrazano-bridge-park-bench/&keyword=

    Notice the duplicate social links I only have the links in the header. This only happens on product pages not any other page.

    Any ideas on how to eliminate this?

    Thanks Joe

    #73906

    Hi,

    I was hiding the social icons with the following CSS;

    .title_meta {

    display: none;

    }

    Where can I remove the code? Is in it a WooCommerce php file? I noticed there is a share.php, is the code in there? what lines should be removed?

    Sorry for the first message.

    Thanks Joe

    #73907

    Hi JoeLamari,

    I’m not sure what you mean. Do you want to remove the css or remove some code in the php files?

    Regards,

    Devin

    #73908

    Thanks for the reply Devin.

    I would like to remove the code from the php file for the Woocommerce shop and product pages. I have it in the header now of the Propulsion Theme.

    Regards Joe

    #73909

    Hi Joe,

    I don’t see the social links on the store or product pages right now. The best way to remove them would be with css. Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    #main .social_bookmarks {
    display: none;
    }

    If that does not do what you are looking for, can you make a screenshot or point out on a page specifically what you are trying to remove?

    Regards,

    Devin

    #73910

    Hi Devin,

    Sorry for all the confusion. I’m currently hiding the social media icons using the CSS you suggested on the product pages, therefore it is not visible. But since it is still in the php code file it showing up as links in SEO searches which influences the percentage links outside my site.

    So I would like to know where the code is, if possible, so I can remove it. If this doesn’t answer your question

    here is the link as an example, the social media icons are not visible but still in the php file code:

    http://joeligammari.com/fine-art-photography-prints/cityscapes/brooklyn-bridge-manhattan-skyline-dumbo/

    Hope this makes sense.

    Regards Joe

    #73911

    Hi Joe,

    I see the social media icons above the menu. Is this how you want it, yes? Just want to make sure at least that one is behaving properly. :)

    Here’s what I’ve found reviewing the source code for the page you listed above.

    The first instance of the social media code is found in #header:

    <ul class="social_bookmarks">
    <li class='mail'><a href='http://joeligammari.com/contact-joe-ligammari/'>Send us Mail</a></li><li class='dribbble'><a href='http://linkedin.com/in/joeligammari' target='_blank'>Follow us on Linkedin</a></li><li class='twitter'><a href='http://twitter.com/joeligammari' target='_blank'>Follow us on Twitter</a></li><li class='facebook'><a href='http://www.facebook.com/photographybyjoeligammari ' target='_blank'>Join our Facebook Group</a></li>
    <li class='rss'><a href="http://joeligammari.com/feed/">Subscribe to our RSS Feed</a></li>
    </ul>

    The second one is found in #main in the DIV “title_meta” which I believe is the class name you were trying to originally hide:

    <div class='title_meta'><form action="http://joeligammari.com/" id="searchform" method="get">
    <div>
    <input type="submit" value="" id="searchsubmit" class="button"/>
    <input type="text" id="s" name="s" value="search site"/>
    </div>
    </form><!-- end searchform--><ul class="social_bookmarks"><li class='mail'><a href='http://joeligammari.com/contact-joe-ligammari/'>Send us Mail</a></li><li class='dribbble'><a href='http://linkedIn.com/in/joeligammari'target='_blank'>Follow us on LinkedIn</a></li><li class='twitter'><a href='http://twitter.com/joeligammari'target='_blank'>Follow us on Twitter</a></li><li class='facebook'><a href='http://www.facebook.com/photographybyjoeligammari 'target='_blank'>Join our Facebook Group</a></li> <li class="rss"><a href="http://joeligammari.com/feed/">RSS</a></li></ul></div></div>

    Now going through my copy of the original PHP templates the only instance I find of the social media code is in footer.php. I even looked in the share.php inside the WooCommerce folder you mentioned in an earlier post and that code pertains to the ShareThis plugin not the code that comes with Propulsion.

    So let me ask you, when you copied the social media code in your header.php did you remove it from footer.php? Did you copy the code in any other template file? How about adding a widget to the Shop sidebar in the Appearance > Widgets?

    Regards,

    Mya

    #73912

    Following this thread since i have the same problems with social links in my seo links on Google..

    #73913

    Hi Mya,

    Thank you for your help!!!

    I think you have found what I am looking for in the, #main in the DIV “title_meta”. Where do I find that code to comment out? I believe that will solve my problem. I just can’t seem to find it.

    The answers to your questions are Yes only in the header, Yes I removed it from the footer and No I did not copy the code to any other template file.

    I didn’t think it was in the ShareThis.php but what do I know?

    Thanks again Joe

    #73914

    Hi Joe,

    I have to correct myself. I just found the second copy of the social media code. It’s in functions.php. Open that file and scroll down to line 198 and you’ll find this:

    echo '<ul class="social_bookmarks">';
    if($dribbble = avia_get_option('dribbble')) echo "<li class='dribbble'><a href='http://dribbble.com/".$dribbble."'>".__('Follow us on dribbble', 'avia_framework')."</a></li>";
    if($twitter = avia_get_option('twitter')) echo "<li class='twitter'><a href='http://twitter.com/".$twitter."'>".__('Follow us on Twitter', 'avia_framework')."</a></li>";
    if($facebook = avia_get_option('facebook')) echo "<li class='facebook'><a href='".$facebook."'>".__('Join our Facebook Group', 'avia_framework')."</a></li>";
    echo ' <li class="rss"><a href="'.avia_get_option('feedburner',get_bloginfo('rss2_url')).'">RSS</a></li>';

    echo '</ul>';

    Remove that code and you should be good to go.

    Andredewaa: If you’re using Propulsion then you may want to try the same.

    Regards,

    Mya

    #73915

    Mya,

    Thank you so much. That did the trick!!!!

    Glad to have you around for the support.

    Regards Joe

    #73916

    Hi,

    Glad that Mya was able to help you. :)

    Cheers,

    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Getting Duplicate Social Links on Product Pages Only?’ is closed to new replies.