Hello All,
I'm already using <?php echo "something here" ?> to style a few elements within my child theme options, it's working fine. I'm having a little trouble echoing a user input for social media links within my child theme options. The idea being the web user enters their full social media link URL and the link assumes that link destination. Here's the my code from my "functions.php" file hard coded including the crucial <?php echo "something" > option:
<div id="fb" class="sociallinks"><a href="<?php echo
$pixelwoo_facebookurl ?>" target="_blank" >
<img src="locationofimagefiles/2012/01/facebook.jpg" width="16"
height="16" alt="facebook" /></a><span class="socialtext">Facebook
</span></div><!-- End of fb -->
Here's my child option array code contained in separate - library/newfolder:
array( "name" => __('Facebook URL','thematic'),
"desc" => __('Add your full facebook URL, eg http://www.
facebook.com/firstname.surname','thematic'),
"id" => "pixelwoo_facebookurl",
"std" => "http://www.facebook.com",
"type" => "text"
),
Finally here's the options being echoed:
//Options for facebook URL
case 'text':
?>
<tr valign="top">
<th scope="row"><?php echo $value['name']; ?>:</th>
<td>
<input name="<?php echo $value['id']; ?>" id="
<?php echo $value['id']; ?>" type="text" value="
<?php echo stripslashes(get_option( $value['id'], $value['std'] )); ?>" />
<?php echo $value['desc']; ?>
</td>
</tr>
<?php
break;
Any thoughts where I'm going wrong? When I click on the my facebook icon it acts as a link (mouse cursor changes to link on hover) but when clicked it's simply blank?
Thanks in advance folks!