Menu

Brushed Theme

October 10, 2015 - wordpress

1) Youtube video images

in index.php

if (strrpos($big_src, ‘youtu.be’))
{
$id = basename(parse_url($big_src, PHP_URL_PATH));
$img_url_part1 = ‘http://img.youtube.com/vi/’;
$img_url_part2 = $id.’/0.jpg’;
$img_src = $img_url_part1.$img_url_part2;
}

2) Add instagram 

a) in wp-content/themes/brushed/admin/option/option.php

array(
‘type’ => ‘textbox’,
‘name’ => ‘instagram’,
‘label’ => __(‘Instagram URL’, ‘brushed’),
‘description’ => __(‘If not set it will not appear on the page.’, ‘brushed’),
‘default’ => ”,
‘validation’ => ‘alpha’,
),

 

b) in index.php

<?php if (vp_option(‘vpt_option.instagram’)){echo “<li><a href='”.vp_option(‘vpt_option.instagram’).”‘ title=’Follow Me on Instagram’ target=’_blank’><span class=’font-icon-camera’></span></a></li>”;}?>

 

3) remove wordpress from contact form

in functions.php

add_filter(‘wp_mail_from_name’, ‘so17635785_from_name’);
function so17635785_from_name($name)
{
return ‘SRI GURU RAAJ SEWA ASHRAM TRUST’;
}

Leave a Reply