Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20897

    Hello, great theme Flashlight!

    I don’t know how to add more social links in this theme… There is only rss, facebook and twitter. I would like to add flickr, youtube and vimeo. Can you explain me how can I do it?

    Thanks!

    Marc

    #109560

    Hi,

    1) Open up wp-content/themes/flashlight/sidebar.php and replace following line:

    echo "		<li class='rss'><a href='".avia_get_option('feedburner',get_bloginfo('rss2_url'))."'>RSS</a></li>";

    with:

    echo "		<li class='rss'><a href='".avia_get_option('feedburner',get_bloginfo('rss2_url'))."'>RSS</a></li>";
    echo "<li class='vimeo'><a href='http://vimeo.com/my-account'>Vimeo</a></li>";
    echo "<li class='youtube'><a href='http://youtube.com/my-account'>Youtube</a></li>";
    echo "<li class='flickr'><a href='http://flickr.com/my-account'>Flickr</a></li>";

    and instead of http://vimeo.com/my-account , http://youtube.com/my-account and http://flickr.com/my-account use/insert your custom account urls (depends on your username, user id, etc.).

    Then add following code to css/custom.css (or insert it into the quick css field):

    .social_bookmarks .vimeo a{background: transparent url(../images/skin-minimal/icons-rounded-vimeo.png) 0 0  no-repeat;}
    .social_bookmarks .flickr a{background: transparent url(../images/skin-minimal/icons-rounded-flickr.png) 0 0 no-repeat;}
    .social_bookmarks .youtube a{background: transparent url(../images/skin-minimal/icons-rounded-youtube.png) 0 0 no-repeat;}

    Last but not least upload your icon images into the wp-content/themes/flashlight/images/skin-minimal/ and name them “icons-rounded-vimeo.png”, “icons-rounded-flickr.png” and “icons-rounded-youtube.png”- If you want to use different names (or a different image src path) you need to adjust the background url in the css code above.

    #109561

    Hi Dude, it works perfectly! I could add Flickr, Youtube and Vimeo with my custom icons, but I don’t know why the link to vimeo and youtube is trying to open it with Pretty Photo and fails…

    The link to Flickr is loading correctly. The url are correct so I don’t know what is happening.

    Thanks,

    #109562

    Hi mllibre,

    Kindly open wp-content/themes/flashlight/js/avia.js and find this code:

    autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a[href*="vimeo.com"] , a[href*="youtube.com"] , a[href*="screenr.com"]'

    then remove:

    a[href*="vimeo.com"] , a[href*="youtube.com"] ,

    Hope this helps.

    Regards,

    Ismael

    #109563

    Perfect! Great support Kriesi team!

    Congratulations,

    Marc

    #109564

    Glad we could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

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

The topic ‘How to add more social links’ is closed to new replies.