I need to add YouTube and Pinterest buttons, but the Editor in my 1.2.6 doesn’t allow me access to do so. The php files seem incomplete compared to 1.1. Help!
This is all that shows in the header.php regarding links:
<div class="hidden-xs hidden-sm"><?php dw_focus_social_links(); ?>
But in 1.1, there is this whole area:
// Social links
$facebook = dw_get_option(‘dw_facebook’);
$twitter = dw_get_option(‘dw_twitter’);
$gplus = dw_get_option(‘dw_gplus’);
$linkedin = dw_get_option(‘dw_linkedin’);
$feedlink = dw_get_option(‘dw_feedlink’, false);
$loginlink = dw_get_option(‘dw_loginlink’, false);
$youtube ="test";
$pinterest="test";
?>
<ul class="social-links visible-desktop">
<?php if( $facebook ) { ?>
<li class="facebook"><a target="_blank" href="<?php echo $facebook; ?>" title="<?php _e(‘Facebook’,’dw-focus’) ?>"><i class="icon-facebook">
<?php } ?>
<?php if( $twitter ) { ?>
<li class="twitter"><a target="_blank" href="<?php echo $twitter; ?>" title="<?php _e(‘Twitter’,’dw-focus’) ?>"><i class="icon-twitter">
<?php } ?>
<?php if( $gplus ) { ?>
<li class="google-plus"><a target="_blank" href="<?php echo $gplus ?>" title="<?php _e(‘Google Plus’,’dw-focus’) ?>"><i class="icon-google-plus">
<?php } ?>
<?php if( $linkedin ) { ?>
<li class="linkedin"><a target="_blank" href="<?php echo $linkedin ?>" title="<?php _e(‘Linked in’,’dw-focus’) ?>"><i class="icon-linkedin">
<?php } ?>
<?php if( $feedlink ) { ?>
<li class="rss"><a href="<?php bloginfo(‘rss2_url’); ?>" title="<?php _e(‘Rss’,’dw-focus’) ?>"><i class="icon-rss">
<?php } ?>
<?php if( $loginlink ) { ?>
<li class="login"><a href="<?php echo wp_login_url( get_permalink() ); ?>" title="<?php _e(‘Login’,’dw-focus’) ?>"><i class="icon-user">
<?php } ?>
<?php if( $feedlink ) { ?>
<li class="rss"><a href="<?php bloginfo(‘rss2_url’); ?>" title="<?php _e(‘Rss’,’dw-focus’) ?>"><i class="icon-rss">
<?php } ?>
<?php if( $feedlink ) { ?>
<li class="rss"><a href="<?php bloginfo(‘rss2_url’); ?>" title="<?php _e(‘Rss’,’dw-focus’) ?>"><i class="icon-rss">
<?php } ?>
<?php if( $youtube ) { ?>
<li class="youtube"><a target="_blank" href="<?php echo $youtube ?>" title="<?php _e(‘youtube’,’dw-focus’) ?>"><i class="icon-youtube">
<?php } ?>
<?php if( $pinterest ) { ?>
<li class="pinterest"><a target="_blank" href="<?php echo $pinterest ?>" title="<?php _e(‘pinterest’,’dw-focus’) ?>"><i class="icon-pinterest">
<?php } ?>
I have answer your issue in the following question: http://www.designwall.com/question/editing-widgets/ Regards,
Thanks so much.
@Lynda Karr: hi, well , in this version , all that code in the area you see lie in a function
name : dw_focus_social_links();
You can edit that function in file : dw-focus/inc/template-tags.php
at line 52--> 80
It’s just more convenient when wrap all of that into a function and then you can put it any where ( header, footer, single post , in a widget …. ) so you see the header.php is shorter than before.
Hope this help.
Thank you!
Please login or Register to submit your answer