• Hello, I’m very new to coding and WordPress so I was hoping someone could help and please forgive my ignorance!

    I’m trying to change the header facebook logo and tags to linkedin for my portfolio site. I think I’ve found the section of code I need to look at in editor:

    <?php } ?>
    				<?php if(get_option($shortname.'_facebook_link','') != '') { ?>
    					<a href="<?php echo get_option($shortname.'_facebook_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook-icon.png" alt="facebook" /></a>

    The image seems to link to a directory I can’t access, is there a way I can get it to route to an image I have in my media?

    I have the logo there: http://www.hw-design.co.uk/wp-content/uploads/2016/01/LinkedIn_logo.png

    The link should follow through to linked in – I changed that in Appearance>Gallery Settings

Viewing 2 replies - 1 through 2 (of 2 total)
  • jack randall

    (@theotherlebowski)

    can you not do this through your theme’s options panel? if you’re new to coding and wordpress then diving into customising template files with placeholder variables and other php goodies is a bit like trying to punch a shark when you’ve only kept goldfish!

    Thread Starter hw-design

    (@hw-design)

    Unfortunately not – that would be a lot easier. I have options on there for every other social site apart from my important one! I thought the best way would be to go into the theme options and link the already set up Facebook one to linked in, then just change the image reference to one from my media, and the alt tags etc.
    I know a few basics and I’m trying to get more confidence with it. I had a site a few years ago that I fiddled round with quite a lot. I find that if you always keep a copy of sound code ready to paste back in, only change small bits at a time and only tags and things you recognise then nothing too catastrophic will happen (touch wood)!
    Would another option be to upload the image to my styesheet_directory via FTP and then just change the filename to the linked in one? Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Image Source – customise CSS’ is closed to new replies.