1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Rep Power

    Help me!!!


    Need your help.
    I try to add a link to my facebook account for my wordpress site:
    This is the code:
    <div id="social">
    <?php if (of_get_option('facebook-link', '#') !='') : ?>
    <a href="<?php echo of_get_option('facebook-link', '#'); ?>" class="facebook-link" target="_blank"></a>
    <?php endif; if (of_get_option('twitter-link', '#') !='') : ?>
    <a href="<?php echo of_get_option('twitter-link', '#'); ?>" class="twitter-link" target="_blank"></a>
    <?php endif; if (of_get_option('gplus-link', '#') !='') : ?>
    <a href="<?php echo of_get_option('gplus-link', '#'); ?>" class="gplus-link" target="_blank"></a>
    <?php endif; if (of_get_option('con-link', '#') !='') : ?>
    <a href="<?php echo of_get_option('con-link', '#'); ?>" class="con-link" target="_blank"></a>
    <?php endif; ?>

    No matter what I have tried I get to the default link of this wordpress theme. Please tell me what I should change in order to edit it.

    Thank you in advance,
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    Find out where of_get_option('facebook-link', '#') finds its information, and put your facebook link there.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2004
    New Springfield, OH
    Rep Power
    It looks as though you should have an option page for that theme. You don't say what version you are using, but it should be under Appearance > Theme Options.
    Don't like me? Click it.

    Scripting problems? Windows questions? Ask the Windows Guru!

    Stay up to date with all of my latest content. Follow me on Twitter!

    Help us help you! Post your exact error message with these easy tips!

IMN logo majestic logo threadwatch logo seochat tools logo