• Resolved Avantart

    (@avantart)


    as Ravelry is the only useful social network in the world ;=), I would love to show this in the social network areas on the page.

    How can new networks be added to the already impressive list of networks?

    Cheers, Connie

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hey Connie,

    Sure, this is a bit technical but here are the steps you can follow:

    Locate the “social-icons.php” file in the “content” folder, and copy it into your child theme (create an empty “content” folder to put it in).

    Copy the array from the “ct_tracks_social_site_list()” function (in functions.php) and use it to create a new function in social-icons.php with Ravelry added to it. Use this new array with Ravelry to set the $social_sites variable at the beginning of social-icons.php.

    Lastly, you’ll need to add a conditional statement to add a custom image in place of Ravelry to the existing list of conditional statements like this:

    elseif( $active_site == 'ravelry' ) {
    				echo '<img class="ravelry" alt="ravelry icon" src="" />';
    			}
    Thread Starter Avantart

    (@avantart)

    thanks, I note that and will test, even when I am now configuring APEX, but I am sure I can use Tracks at another domain in the next time,

    Cheers, Connie

    Theme Author Ben Sibley

    (@bensibley)

    Yea no problem. You’ll find the code is very similar in the Apex theme as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add another social network?’ is closed to new replies.