Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #10004


    I would like to add a social-media link for youtube.

    First I add in register-admin-options.php

    $avia_elements[] =	array(
    "name" => "Your YouTube page/group/account",
    "desc" => "Enter the url to your YouTube page or channel. If you leave this blank the facebook link in your sidebar of your site wont be displayed.",
    "id" => "youtube",
    "slug" => "contact",
    "std" => "",
    "type" => "text");

    and in the sidebar.php

    if($youtube = avia_get_option('youtube')) echo "<li class='youtube'><a href='".$youtube."'>youtube</a>";

    and in the css/minimal-skin.css

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

    after this I upload the icon.

    It runs, but is it right, that this add-on is lost, if there will be a update of the theme?


    This is correct, in case you need to run an update you need to make sure that you only upload the files mentioned in the versions.txt file. If any of the files you modified here is affected from the update you need to add the code again.

    I would recommend to use the custom.css file for your css modifictions, since we never touch this file in one of our updates and register admin options and sidebar.php are relatively save too ;D


    Maybe the Youtube-Option is a good idea for the next update ;-)



    This has been a concern for some of our users and I’m sure Kriesi will look into this. :)





    We will add a special hook in the next theme that allows you to set up a a child theme and execute a function when the soical item list gets rendered so you can add your own :)



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

The topic ‘Add Social Media Link/Icon’ is closed to new replies.