Search Results for 'color'

Home Forums Search Search Results for 'color'

Viewing 15 results - 2,791 through 2,805 (of 3,301 total)
  • Author
    Search Results
  • #24304
    Colleen WaechColleen Waech
    Member
    Member since: October 19, 2015

    Hi SKT Support,

    I am requesting code to expand one menu item’s hover color on the far right of my navigation bar. When you hover on it, it does not fully hover all of it and leaves a tiny portion to the right of it as the original nav bar color. Could this be fixed so the entire area is covered?

    Here is the url to my site: http://www.spcsslinger.org/

    #24294
    Colleen WaechColleen Waech
    Member
    Member since: October 19, 2015

    Hi SKT,

    I am wondering if there is a way to select a hover color for header Navigation right “Get A Quote”? Thanks!

    #24246
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Dave,

    I am not sure which version you are using but anyways here is the code. I have deleted the website prefix input field in the file.

    <?php
    /**
     * @package SKT BeFit
     * Setup the WordPress core custom functions feature.
     *
    */
    
    add_action('skt_befit_optionsframework_custom_scripts', 'skt_befit_optionsframework_custom_scripts');
    function skt_befit_optionsframework_custom_scripts() { ?>
    	<script type="text/javascript">
        jQuery(document).ready(function() {
        
            jQuery('#example_showhidden').click(function() {
                jQuery('#section-example_text_hidden').fadeToggle(400);
            });
            
            if (jQuery('#example_showhidden:checked').val() !== undefined) {
                jQuery('#section-example_text_hidden').show();
            }
            
        });
        </script><?php
    }
    
    // custom javascript for head
    add_action('wp_head','hook_custom_javascript');
    
    // get_the_content format text
    function get_the_content_format( $str ){
    	$raw_content = apply_filters( 'the_content', $str );
    	$content = str_replace( ']]>', ']]>', $raw_content );
    	return $content;
    }
    // the_content format text
    function the_content_format( $str ){
    	echo get_the_content_format( $str );
    }
    
    function is_google_font( $font ){
    	$notGoogleFont = array( 'Arial', 'Comic Sans MS', 'FreeSans', 'Georgia', 'Lucida Sans Unicode', 'Palatino Linotype', 'Symbol', 'Tahoma', 'Trebuchet MS', 'Verdana' );
    	if( in_array($font, $notGoogleFont) ){
    		return false;
    	}else{
    		return true;
    	}
    }
    
    // subhead section function
    function sub_head_section( $more ) {
    	$pgs = 0;
    	do {
    		$pgs++;
    	} while ($more > $pgs);
    	return $pgs;
    }
    
    //[clear]
    function clear_func() {
    	$clr = '<div class="clear"></div>';
    	return $clr;
    }
    add_shortcode( 'clear', 'clear_func' );
    
    //[separator height="20"]
    function separator_shortcode_func($atts ) {
    	extract( shortcode_atts( array(
    		'height' => '20',
    	), $atts ) );
    	$sptr = '<div style="clear:both; min-height:20px; height:'.$height.'px; background:url('.get_template_directory_uri().'/images/hr_double.png) no-repeat center center transparent;"></div>';
    	return $sptr;
    }
    add_shortcode( 'separator', 'separator_shortcode_func' );
    
    //[blankspace height="20"]
    function blankspace_shortcode_func($atts ) {
    	extract( shortcode_atts( array(
    		'height' => '20',
    	), $atts ) );
    	$sptr = '<div class="custom-height" style="height:'.$height.'px;"></div>';
    	return $sptr;
    }
    add_shortcode( 'blankspace', 'blankspace_shortcode_func' );
    
    //[column_content]Your content here...[/column_content]
    function column_content_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'type' => '',
    		'animation' => '',
    	), $atts ) );
    	$colPos = strpos($type, '_last');
    	if($colPos === false){
    		$cnt = '<div class="'.$type.' '.$animation.'">'.do_shortcode($content).'</div>';
    	}else{
    		$type = substr($type,0,$colPos);
    		$cnt = '<div class="'.$type.' '.$animation.' last_column">'.do_shortcode($content).'</div>';
    	}
    	return $cnt;
    }
    add_shortcode( 'column_content', 'column_content_func' );
    
    //[hr]
    function hrule_func() {
    	$hrule = '<div class="clear hrule"></div>';
    	return $hrule;
    }
    add_shortcode( 'hr', 'hrule_func' );
    
    //[hr_top]
    function hr_top_func() {
    	$hr_top = '<div class="clear linktotop"><a title="Top of Page" href="#top">Back to Top</a></div><div class="clear hrule"></div>';
    	return $hr_top;
    }
    add_shortcode( 'hr_top', 'hr_top_func' );
    
    // [searchform]
    function searchform_shortcode_func( $atts ){
    	return get_search_form( false );
    }
    add_shortcode( 'searchform', 'searchform_shortcode_func' );
    
    // accordion
    function accordion_func( $atts, $content = null ) {
    	$acc = '<div style="margin-top:10px;">'.get_the_content_format( do_shortcode($content) ).'<div class="clear"></div></div>';
    	return $acc;
    }
    add_shortcode( 'accordion', 'accordion_func' );
    function accordion_content_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'title' => 'Accordion Title',
    	), $atts ) );
    	$content = wpautop(trim($content));
    	$acn = '<div class="accordion-box"><h2>'.$title.'</h2>
    			<div class="acc-content">'.$content.'</div><div class="clear"></div></div>';
    	return $acn;
    }
    add_shortcode( 'accordion_content', 'accordion_content_func' );
    
    /* [features name="name" icon="icon" url="url"]loremcontent[/features]*/
    
    // add shortcode for features
    function featuresbox($atts, $content = null){
    		extract( shortcode_atts(array(
    			'title' => 'title',
    			'icon'  => get_template_directory_uri().'/images/patterns.png',
    			'url' => 'url',
    		), $atts));
    		
    		return '
    				<div class="feature-box">
    				<a href="'.$url.'">
    					<img src="'.$icon.'" />
    					<h2>'.$title.'</h2>
    					<span></span>
    					<p>'.$content.'</p>
    					<a class="read-more" href="'.$url.'">Read More</a> 
    				</a>	
    				</div>	
    		';
    }
    add_shortcode('features','featuresbox');
    
    /* [appointment title="title" buttontext="button text" url="button url"]content[/appointment] */
    
    // add shortcode for book appointment box
    function appointmentbox($atts, $content = null){
    		extract( shortcode_atts(array(
    			'title' => 'title',
    			'buttontext'  => 'button',
    			'url' => 'url',
    		), $atts));
    		
    		return '
    			<div class="appointmentarea">
    				 <div class="appointmentbox">
    				 	<div class="app-contentarea">
    						<h2>'.$title.'</h2>
    						<p>'.$content.'</p>
    					</div>
    					<div class="app-buttonarea">
    						<div class="appointmentbutton"><a href="'.$url.'">'.$buttontext.'</a></div>
    					</div>
    					<div class="clear"></div>
    				 </div>
    			</div>	
    		';
    }
    add_shortcode('appointment','appointmentbox');
    
    /* [courselist title="title"]Content[/courselist] */
    function aboutcourse($atts, $content = null){
    	extract(
    		shortcode_atts(array(
    			'title' => 'title',
    		), $atts));
    		
    		return '
    		<div class="courselistbox">
    			<div class="coursetitle">'.$title.'</div>
    			<div class="clear"></div>
    			<div class="coursedesc">'.$content.'</div>
    		</div>	
    		';
    }	
    add_shortcode('courselist','aboutcourse');	
    /* Playing */
    
    // remove excerpt more
    function new_excerpt_more( $more ) {
    	return '... ';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    
    // get post categories function
    function getPostCategories(){
    	$categories = get_the_category();
    	$catOut = '';
    	$separator = ', ';
    	$catOutput = '';
    	if($categories){
    		foreach($categories as $category) {
    			$catOutput .= '<a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s", 'skt-befit' ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
    		}
    		$catOut = 'Categories: '.trim($catOutput, $separator);
    	}
    	return $catOut;
    }
    
    // replace last occurance of a string.
    function str_lreplace($search, $replace, $subject){
    	$pos = strrpos($subject, $search);
    	if($pos !== false){
    		$subject = substr_replace($subject, $replace, $pos, strlen($search));
    	}
    	return $subject;
    }
    
    function pricing_table_shortcode_func( $atts, $content = null ) {
       extract( shortcode_atts( array(
    		'columns' => '4',
    	), $atts ) );
    	$ptbl = '<div class="pricing_table pcol'.$columns.'">'.do_shortcode( str_replace(array('<br />','\t','\n','\r','\0'.'\x0B'), array('','','','','',''), $content) ) .'<div class="clear"></div></div>';
    	return $ptbl;
    }
    add_shortcode( 'pricing_table', 'pricing_table_shortcode_func' );
    
    function price_column_func( $atts, $content = null ) {
       extract( shortcode_atts( array(
    		'highlight' => '',
    		'bgcolor' => '',
    	), $atts ) );
    	$pcol = '<div class="price_col '.( (strtolower($highlight) == 'yes') ? 'highlight' : '' ).'" '.( ($bgcolor!='') ? 'style="background-color:'.$bgcolor.' !important;"' : '' ) .'>'.do_shortcode( $content ) .'</div>';
        return $pcol;
    }
    add_shortcode( 'price_column', 'price_column_func' );
    
    function price_column_header_func( $atts, $content = null ) {
    	$pheader = '<div class="th">'.strip_tags($content).'</div>';
        return $pheader;
    }
    add_shortcode( 'price_header', 'price_column_header_func' );
    
    function price_column_footer_func( $atts, $content = null ) {
       extract( shortcode_atts( array(
    		'link' => '#',
    	), $atts ) );
    	$pfooter = '<div class="tf"><a href="'.$link.'">'.strip_tags($content).'</a></div>';
        return $pfooter;
    }
    add_shortcode( 'price_footer', 'price_column_footer_func' );
    
    function price_row_footer_func( $atts, $content = null ) {
    	$prow = '<div class="td">'.$content.'</div>';
        return $prow;
    }
    add_shortcode( 'price_row', 'price_row_footer_func' );
    
    function readmore_func( $atts) {
    	extract(shortcode_atts(array(	
    	'button'		=> '',	
    	'links'		=> '',
    	'align'		=> '',						
    	), $atts));
    	$rrow = '<div class="view-all-btn" style="text-align:'.$align.'"><a href="'.$links.'">'.$button.'</a></div>';
        return $rrow;
    }
    add_shortcode( 'readmore-link', 'readmore_func' );
    
    // custom post type for Testimonials
    function my_custom_post_testimonials() {
    	$labels = array(
    		'name'               => __( 'Testimonials','skt-befit'),
    		'singular_name'      => __( 'Testimonials','skt-befit'),
    		'add_new'            => __( 'Add Testimonials','skt-befit'),
    		'add_new_item'       => __( 'Add New Testimonial','skt-befit'),
    		'edit_item'          => __( 'Edit Testimonial','skt-befit'),
    		'new_item'           => __( 'New Testimonial','skt-befit'),
    		'all_items'          => __( 'All Testimonials','skt-befit'),
    		'view_item'          => __( 'View Testimonial','skt-befit'),
    		'search_items'       => __( 'Search Testimonial','skt-befit'),
    		'not_found'          => __( 'No Testimonial found','skt-befit'),
    		'not_found_in_trash' => __( 'No Testimonial found in the Trash','skt-befit'), 
    		'parent_item_colon'  => '',
    		'menu_name'          => 'Testimonials'
    	);
    	$args = array(
    		'labels'        => $labels,
    		'description'   => 'Manage Testimonials',
    		'public'        => true,
    		'menu_icon'		=> 'dashicons-format-quote',
    		'menu_position' => null,
    		'supports'      => array( 'title', 'editor', 'thumbnail'),
    		'has_archive'   => true,
    	);
    	register_post_type( 'testimonials', $args );	
    }
    add_action( 'init', 'my_custom_post_testimonials' );
    
    // add meta box to testimonials
    add_action( 'admin_init', 'my_testimonial_admin_function' );
    function my_testimonial_admin_function() {
        add_meta_box( 'testimonial_meta_box',
            'Testimonial Info',
            'display_testimonial_meta_box',
            'testimonials', 'normal', 'high'
        );
    }
    // add meta box form to doctor
    function display_testimonial_meta_box( $testimonial ) {
        // Retrieve current name of the Director and Movie Rating based on review ID
    	$companyname = esc_html( get_post_meta( $testimonial->ID, 'companyname', true ) );  
        $possition = esc_html( get_post_meta( $testimonial->ID, 'possition', true ) ); 
    	
        ?>
        <table width="100%">
            <tr>
                <td width="20%">Company Name </td>
                <td width="80%"><input size="80" type="text" name="companyname" value="<?php echo $companyname; ?>" /></td>
            </tr> 
            <tr>
                <td width="20%">Designation </td>
                <td width="80%"><input size="80" type="text" name="possition" value="<?php echo $possition; ?>" /></td>
            </tr>       
        </table>
        <?php    
    }
    // save testimonial meta box form data
    add_action( 'save_post', 'add_testimonial_fields_function', 10, 2 );
    function add_testimonial_fields_function( $testimonial_id, $testimonial ) {
        // Check post type for testimonials
        if ( $testimonial->post_type == 'testimonials' ) {
            // Store data in post meta table if present in post data
    		if ( isset($_POST['companyname']) ) {
                update_post_meta( $testimonial_id, 'companyname', $_POST['companyname'] );
            } 
            if ( isset($_POST['possition']) ) {
                update_post_meta( $testimonial_id, 'possition', $_POST['possition'] );
            }       
        }
    }
    
    //Testimonials function
    function testimonials_output_func( $atts ){
    	$testimonialoutput = '<div id="testimonials"><div class="quotes">
                <ul>';
    	wp_reset_query();
    	query_posts('post_type=testimonials');
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    		$companyname = esc_html( get_post_meta( get_the_ID(), 'companyname', true ) );
    		$possition = esc_html( get_post_meta( get_the_ID(), 'possition', true ) );
    			$testimonialoutput .= '
      			 <li>			 	
    				<div class="testimonialcontentbox">
    				  '.befit_content(60).'				  
    				</div>	
    				<div class="tm_thumb">'.get_the_post_thumbnail( get_the_ID(), array(70,70) ).'</div>
    				<h6> '.get_the_title().'</h6>
    				<span>'.$companyname.', <cite>'.$possition.'</cite></span>
                  </li>
    			';
    		endwhile;
    		 $testimonialoutput .= '</ul></div></div>';
    	else:
    	  $testimonialoutput = '<div id="testimonials">
              <div class="quotes">
                <ul>
                  <li>                 
                      <div class="testimonialcontentbox">
    				   <p>Aliquam et varius orci, ut ornare justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque augue metus, blandit vel nibh sed, sollicitudin placerat quam. Quisque id scelerisque nibh. Phasellus in orci et felis tristique finibus non quis erat. Quisque nec congue nunc, sagittis aliquet orci. Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod.</p>                   
    				  </div> 
    				  <div class="tm_thumb"><img src="'.get_template_directory_uri()."/images/testimonial.jpg".'" alt="" /></div> 
    				  <h6>Eficitur Sodale</h6>
    				  <span>Some Company, <cite>CEO</cite></span>			              
                  </li>
    			  
                  <li>                 
                      <div class="testimonialcontentbox">
    				   <p>Aliquam et varius orci, ut ornare justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque augue metus, blandit vel nibh sed, sollicitudin placerat quam. Quisque id scelerisque nibh. Phasellus in orci et felis tristique finibus non quis erat. Quisque nec congue nunc, sagittis aliquet orci. Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod Quisque pulvinar feugiat sodales. Nam fermentum tempus odio sed euismod.</p>                   		  
    				  </div> 
    				  <div class="tm_thumb"><img src="'.get_template_directory_uri()."/images/testimonial.jpg".'" alt="" /></div> 
    				  <h6>Christopher Hitchens </h6>
    				  <span>Some Company, <cite>Manager</cite></span>	          
                  </li>
    			               
                </ul>         
        </div>  
      </div>
    	   ';			
    	  endif;  
    	wp_reset_query();
    	$testimonialoutput .= '</div>';
    	
    	return $testimonialoutput;
    }
    add_shortcode( 'testimonials', 'testimonials_output_func' );
    
    function latestposts_func( $atts ) {
       extract( shortcode_atts( array(
    		'col' => 4,
    	), $atts ) );
    
    	$lbposts = '<div class="latest_posts">';
    	$args = array( 'posts_per_page' => $col, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'date', 'order' => 'desc' );
    	query_posts( $args );
    	$n = 0;
    	if ( have_posts() ) {
    		while ( have_posts() ) { 
    			$n++;
    			the_post();
    			if( $col == 1 ){
    				$lbposts .= '<div class="full_width BlogPost';
    			}elseif( $col == 2 ){
    				$lbposts .= '<div class="one_half BlogPost';
    			}elseif( $col == 3 ){
    				$lbposts .= '<div class="one_third BlogPost';
    			}elseif( $col == 4 ){
    				$lbposts .= '<div class="one_fourth BlogPost';
    			}elseif( $col == 5 ){
    				$lbposts .= '<div class="one_fifth BlogPost';
    			}
    			if( $n == $col ) {
    				$lbposts .= ' last_column">';
    			} else {
    				$lbposts .= '">';
    			}
    			$lbposts .= '<a href="'.get_permalink().'" title="'.get_the_title().'">'.( (get_the_post_thumbnail( get_the_ID(), 'thumbnail') != '') ? get_the_post_thumbnail( get_the_ID(), 'full') : '<img src="'.get_template_directory_uri().'/images/thumb_07.jpg" />' ).'</a>
    				<h2><a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_title().'</a></h2>
    				<div class="clear"></div>
    				
    				<div class="postauthor">'.get_the_author().'</div>
    				<div class="postdate">'.get_the_date('F j, Y').'</div>
    				
    				<div class="clear"></div>
    				'.befit_content(36).'
    				<div class="clear"></div>
    				<a class="news-more" href="'.get_permalink().'">Read More</a> 
    				</div>';
    		}
    	}else{
    		$lbposts .= '<p>Sorry! There are no latest posts.</p>';
    	}
    	wp_reset_query();
    	$lbposts .= '<div class="clear"></div></div>';
        return $lbposts;
    }
    add_shortcode( 'latest-posts', 'latestposts_func' );
    
    /* Playing */
    /*Latest news Function*/
    function home_latest_news( $atts ){
       extract( shortcode_atts( array(
    		'show' => 3,
    	), $atts ) );
    	$frp = '';
    	wp_reset_query();
    	$n = 0;
    	query_posts(  array( 'posts_per_page'=>$show, 'post__not_in' => get_option('sticky_posts') )  );
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    			$n++;
    			if( $n%2==0 ) 
    			$nomgn = 'last';
    			else
    			$nomgn = ' ';
    			if ( has_post_thumbnail()) {
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail');
    				$imgUrl = $large_image_url[0];
    			}else{
    				$imgUrl = get_template_directory_uri().'/images/img_404.png';
    			} 
    			
    			$frp .= '<div class="news-post '.$nomgn.'">
    							 <a href="'.get_the_permalink().'"><img src="'.$imgUrl.'" alt="" /></a>						 
    							 <a href="'.get_the_permalink().'"><h6>'.get_the_title().'</h6></a>		
    							 <span>Posted by <a>'.get_the_author().'</a> / '. get_comments_number() .' <a>Comments</a></span>						
    							 <p>'.skt_befit_string_limit_words(get_the_excerpt(),43).'</p>							
    							<div class="clear"></div>
                            </div>';		
    		endwhile;
    	endif;
    	wp_reset_query();
    	$frp .= '<div class="clear"></div>';
    	
    	return $frp;
    }
    add_shortcode( 'latest-news', 'home_latest_news' );
    /* Playing */
    
    /*Latest news Function*/
    function footer_recent_posts_func( $atts ){
       extract( shortcode_atts( array(
    		'show' => 4,
    	), $atts ) );
    	$frp = '';
    	wp_reset_query();
    	$n = 0;
    	query_posts(  array( 'posts_per_page'=>$show, 'post__not_in' => get_option('sticky_posts') )  );
    	if ( have_posts() ) :
    		while ( have_posts() ) : the_post();
    			$n++;
    			if( $n%2==0 ) 
    			$nomgn = 'last';
    			else
    			$nomgn = ' ';
    			if ( has_post_thumbnail()) {
    				$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail');
    				$imgUrl = $large_image_url[0];
    			}else{
    				$imgUrl = get_template_directory_uri().'/images/img_404.png';
    			} 
    			
    			$frp .= '<div class="recent-post '.$nomgn.'">
    							 <a href="'.get_the_permalink().'"><img src="'.$imgUrl.'" alt="" /></a>						 
    							 <a href="'.get_the_permalink().'"><h6>'.get_the_title().'</h6></a>								
    							 <p>'.skt_befit_string_limit_words(get_the_excerpt(),8).'</p>							
    							<div class="clear"></div>
                            </div>';		
    		endwhile;
    	endif;
    	wp_reset_query();
    	$frp .= '<div class="clear"></div>';
    	
    	return $frp;
    }
    add_shortcode( 'footer-posts', 'footer_recent_posts_func' );
    
    //custom post type for Our Team
    function my_custom_post_team() {
    	$labels = array(
    		'name'               => __( 'Our Team', 'skt-befit' ),
    		'singular_name'      => __( 'Our Team', 'skt-befit' ),
    		'add_new'            => __( 'Add New', 'skt-befit' ),
    		'add_new_item'       => __( 'Add New Team Member', 'skt-befit' ),
    		'edit_item'          => __( 'Edit Team Member', 'skt-befit' ),
    		'new_item'           => __( 'New Member', 'skt-befit' ),
    		'all_items'          => __( 'All Members', 'skt-befit' ),
    		'view_item'          => __( 'View Members', 'skt-befit' ),
    		'search_items'       => __( 'Search Team Members', 'skt-befit' ),
    		'not_found'          => __( 'No Team members found', 'skt-befit' ),
    		'not_found_in_trash' => __( 'No Team members found in the Trash', 'skt-befit' ), 
    		'parent_item_colon'  => '',
    		'menu_name'          => 'Our Team'
    	);
    	$args = array(
    		'labels'        => $labels,
    		'description'   => 'Manage Team',
    		'public'        => true,
    		'menu_position' => null,
    		'menu_icon'		=> 'dashicons-groups',
    		'supports'      => array( 'title', 'editor', 'thumbnail' ),
    		'rewrite' => array('slug' => 'our-team'),
    		'has_archive'   => true,
    	);
    	register_post_type( 'team', $args );
    	flush_rewrite_rules();
    }
    add_action( 'init', 'my_custom_post_team' );
    
    // add meta box to team
    add_action( 'admin_init', 'my_team_admin_function' );
    function my_team_admin_function() {
        add_meta_box( 'team_meta_box',
            'Member Info',
            'display_team_meta_box',
            'team', 'normal', 'high'
        );
    }
    // add meta box form to team
    function display_team_meta_box( $team ) {
        // Retrieve current name of the Director and Movie Rating based on review ID
        $designation = esc_html( get_post_meta( $team->ID, 'designation', true ) );
        $facebook = get_post_meta( $team->ID, 'facebook', true );
    	$facebooklink = esc_url( get_post_meta( $team->ID, 'facebooklink', true ) );
        $twitter = get_post_meta( $team->ID, 'twitter', true );
    	$twitterlink = esc_url( get_post_meta( $team->ID, 'twitterlink', true ) );
        $linkedin = get_post_meta( $team->ID, 'linkedin', true );
    	$linkedinlink = esc_url( get_post_meta( $team->ID, 'linkedinlink', true ) );
    	$pint = get_post_meta( $team->ID, 'google', true );
    	$googlelink = esc_url( get_post_meta( $team->ID, 'googlelink', true ) );
        $dribbble = get_post_meta( $team->ID, 'dribbble', true );
    	$dribbblelink = get_post_meta( $team->ID, 'dribbblelink', true );
        ?>
        <table width="100%">
            <tr>
                <td width="20%">Designation </td>
                <td width="80%"><input type="text" name="designation" value="<?php echo $designation; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social link 1</td>
                <td width="40%"><input type="text" name="facebook" value="<?php echo $facebook; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="facebooklink" value="<?php echo $facebooklink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 2</td>
                <td width="40%"><input type="text" name="twitter" value="<?php echo $twitter; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="twitterlink" value="<?php echo $twitterlink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 3</td>
                <td width="40%"><input type="text" name="linkedin" value="<?php echo $linkedin; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="linkedinlink" value="<?php echo $linkedinlink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 4</td>
                <td width="40%"><input type="text" name="dribbble" value="<?php echo $dribbble; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="dribbblelink" value="<?php echo $dribbblelink; ?>" /></td>
            </tr>
            <tr>
                <td width="20%">Social Link 5</td>
                <td width="40%"><input type="text" name="google" value="<?php echo $pint; ?>" /></td>
                <td width="40%"><input style="width:500px;" type="text" name="googlelink" value="<?php echo $googlelink; ?>" /></td>
            </tr>
            <tr>
            	<td width="100%" colspan="3"><label style="font-size:12px;"><strong>Note:</strong> Icon name should be in lowercase without space. More social icons can be found at: http://fortawesome.github.io/Font-Awesome/icons/</label> </td>
            </tr>
        </table>
        <?php    
    }
    // save team meta box form data
    add_action( 'save_post', 'add_team_fields_function', 10, 2 );
    function add_team_fields_function( $team_id, $team ) {
        // Check post type for testimonials
        if ( $team->post_type == 'team' ) {
            // Store data in post meta table if present in post data
            if ( isset($_POST['designation']) ) {
                update_post_meta( $team_id, 'designation', $_POST['designation'] );
            }
            if ( isset($_POST['facebook']) ) {
                update_post_meta( $team_id, 'facebook', $_POST['facebook'] );
            }
    		if ( isset($_POST['facebooklink']) ) {
                update_post_meta( $team_id, 'facebooklink', $_POST['facebooklink'] );
            }
            if ( isset($_POST['twitter']) ) {
                update_post_meta( $team_id, 'twitter', $_POST['twitter'] );
            }
    		if ( isset($_POST['twitterlink']) ) {
                update_post_meta( $team_id, 'twitterlink', $_POST['twitterlink'] );
            }
            if ( isset($_POST['linkedin']) ) {
                update_post_meta( $team_id, 'linkedin', $_POST['linkedin'] );
            }
    		if ( isset($_POST['linkedinlink']) ) {
                update_post_meta( $team_id, 'linkedinlink', $_POST['linkedinlink'] );
            }
            if ( isset($_POST['dribbble']) ) {
                update_post_meta( $team_id, 'dribbble', $_POST['dribbble'] );
            }
    		if ( isset($_POST['dribbblelink']) ) {
                update_post_meta( $team_id, 'dribbblelink', $_POST['dribbblelink'] );
            }
    		if ( isset($_POST['google']) ) {
                update_post_meta( $team_id, 'google', $_POST['google'] );
            }
    		if ( isset($_POST['googlelink']) ) {
                update_post_meta( $team_id, 'googlelink', $_POST['googlelink'] );
            }
        }
    }
    
    function ourteamposts_func( $atts ) {
       extract( shortcode_atts( array(
    		'col' => '',
    	), $atts ) );
    	  extract( shortcode_atts( array( 'show' => '',), $atts ) ); $postoutput = ''; wp_reset_query();
    	$bposts = '<div class="section-teammember">';
    	$args = array( 'post_type' => 'team', 'posts_per_page' => $show, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'date', 'order' => 'desc' );
    	query_posts( $args );
    	$n = 0;
    	if ( have_posts() ) {
    		while ( have_posts() ) { 
    			the_post();
    			$n++; if( $n%4 == 0 ) $nomargn = ' last'; else $nomargn = '';
    			$designation = esc_html( get_post_meta( get_the_ID(), 'designation', true ) );
    			$facebook = get_post_meta( get_the_ID(), 'facebook', true );
    			$facebooklink = get_post_meta( get_the_ID(), 'facebooklink', true );
    			$twitter = get_post_meta( get_the_ID(), 'twitter', true );
    			$twitterlink = get_post_meta( get_the_ID(), 'twitterlink', true );
    			$linkedin = get_post_meta( get_the_ID(), 'linkedin', true );
    			$linkedinlink = get_post_meta( get_the_ID(), 'linkedinlink', true );
    			$dribbble = get_post_meta( get_the_ID(), 'dribbble', true );
    			$dribbblelink = get_post_meta( get_the_ID(), 'dribbblelink', true );
    			$pint = get_post_meta( get_the_ID(), 'google', true );
    			$googlelink = get_post_meta( get_the_ID(), 'googlelink', true );
    			 
    				$bposts .= '<div class="teammember-list'.$nomargn.'">';
    			$bposts .= '<a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_post_thumbnail( get_the_ID(), array(150,150) ).'</a>
    				<h5>'.get_the_title().'</h5>
    				<div class="member-desination">'.$designation.'</div>';
    			$bposts .= '<div class="member-social-icon">';
    								if( $facebook != '' ){
    									$bposts .= '<a href="'.$facebooklink.'" title="'.$facebook.'" target="_blank"><i class="fa fa-'.$facebook.' fa-lg"></i></a>';
    								}
    								if( $twitter != '' ){
    									$bposts .= '<a href="'.$twitterlink.'" title="'.$twitter.'" target="_blank"><i class="fa fa-'.$twitter.' fa-lg"></i></a>';
    								}
    								if( $linkedin != '' ){
    									$bposts .= '<a href="'.$linkedinlink.'" title="'.$linkedin.'" target="_blank"><i class="fa fa-'.$linkedin.' fa-lg"></i></a>';
    								}
    								if( $dribbble != '' ){
    									$bposts .= '<a href="'.$dribbblelink.'" title="'.$dribbble.'" target="_blank"><i class="fa fa-'.$dribbble.' fa-lg"></i></a>';
    								}
    								if( $pint != '' ){
    									$bposts .= '<a href="'.$googlelink.'" title="'.$pint.'" target="_blank"><i class="fa fa-'.$pint.' fa-lg"></i></a><div class="clear"></div>';
    								}
    				$bposts .= '</div>';
    			$bposts .= '</div>';
    		}
    	}else{
    		$bposts .= 'There are no found team member';
    	}
    	wp_reset_query();
    	$bposts .= '<div class="clear"></div></div>';
        return $bposts;
    }
    add_shortcode( 'ourteam', 'ourteamposts_func' );
    
    // shortcode for custom width
    function skt_befit_custom_width_func($atts, $content = null){
    		extract(shortcode_atts(array(
    			'width'		=> 'width',						
    			'class'		=> null
    		), $atts));
    		return '<div class="'.$class.'" style="width:'.$width.';">'.do_shortcode($content).'</div>';		
    }
    
    add_shortcode('area','skt_befit_custom_width_func');
    
    // Social Icon Shortcodes
    
    function skt_befit_social_area($atts,$content = null){
      return '<div class="social-icons">'.do_shortcode($content).'</div>';
     }
    add_shortcode('social_area','skt_befit_social_area');
    
    function skt_befit_social($atts){
     extract(shortcode_atts(array(
      'icon' => '',
      'link' => ''
     ),$atts));
      return '<a href="'.$link.'" target="_blank" class="fa fa-'.$icon.' fa-1x" title="'.$icon.'"></a>';
     }
    add_shortcode('social','skt_befit_social');
    
    function contactform_func( $atts ) {
        $atts = shortcode_atts( array(
            'to_email' => get_bloginfo('admin_email'),
    		'title' => 'Contact enquiry - '.home_url( '/' ),
        ), $atts );
    
    	$cform = "<div class=\"main-form-area\" id=\"contactform_main\">";
    
    	$cerr = array();
    	if( isset($_POST['c_submit']) && $_POST['c_submit']=='Submit' ){
    		$name 			= trim( $_POST['c_name'] );
    		$email 			= trim( $_POST['c_email'] );
    		$phone 			= trim( $_POST['c_phone'] );
    		$comments 		= trim( $_POST['c_comments'] );
    		$captcha 		= trim( $_POST['c_captcha'] );
    		$captcha_cnf	= trim( $_POST['c_captcha_confirm'] );
    
    		if( !$name )
    			$cerr['name'] = 'Please enter your name.';
    		if( ! filter_var($email, FILTER_VALIDATE_EMAIL) ) 
    			$cerr['email'] = 'Please enter a valid email.';
    		if( !$phone )
    			$cerr['phone'] = 'Please enter your phone number.';
    		if( !$comments )
    			$cerr['comments'] = 'Please enter your message.';
    		if( !$captcha || (md5($captcha) != $captcha_cnf) )
    			$cerr['captcha'] = 'Please enter the correct answer.';
    
    		if( count($cerr) == 0 ){
    			$subject = $atts['title'];
    			$headers = "From: ".$name." <" . strip_tags($email) . ">\r\n";
    			$headers .= "MIME-Version: 1.0\r\n";
    			$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    
    			$message = '<html><body>
    							<table>
    								<tr><td>Name: </td><td>'.$name.'</td></tr>
    								<tr><td>Email: </td><td>'.$email.'</td></tr>
    								<tr><td>Phone: </td><td>'.$phone.'</td></tr>
    								<tr><td>Message: </td><td>'.$comments.'</td></tr>
    							</table>
    						</body>
    					</html>';
    			mail( $atts['to_email'], $subject, $message, $headers);
    			$cform .= '<div class="success_msg">Thank you! A representative will get back to you very shortly.</div>';
    			unset( $name, $email, $phone, $comments, $captcha );
    		}else{
    			$cform .= '<div class="error_msg">';
    			$cform .= implode('<br />',$cerr);
    			$cform .= '</div>';
    		}
    	}
    
    	$capNum1 	= rand(1,4);
    	$capNum2 	= rand(1,5);
    	$capSum		= $capNum1 + $capNum2;
    	$sumStr		= $capNum1." + ".$capNum2 ." = ";
    
    	$cform .= "<form name=\"contactform\" action=\"#contactform_main\" method=\"post\">
    			<p><input type=\"text\" name=\"c_name\" value=\"". ( ( empty($name) == false ) ? $name : "" ) ."\" placeholder=\"Name\" /></p>
    			<p><input type=\"email\" name=\"c_email\" value=\"". ( ( empty($email) == false ) ? $email : "" ) ."\" placeholder=\"Email\" /></p><div class=\"clear\"></div>
    			<p><input type=\"tel\" name=\"c_phone\" value=\"". ( ( empty($phone) == false ) ? $phone : "" ) ."\" placeholder=\"Phone\" /></p>
    			<p><textarea name=\"c_comments\" placeholder=\"Message\">". ( ( empty($comments) == false ) ? $comments : "" ) ."</textarea></p><div class=\"clear\"></div>";
    	$cform .= "<p><span class=\"capcode\">$sumStr</span><input style=\"width:200px;\" type=\"text\" placeholder=\"Captcha\" value=\"". ( ( empty($captcha) == false ) ? $captcha : "" ) ."\" name=\"c_captcha\" /><input type=\"hidden\" name=\"c_captcha_confirm\" value=\"". md5($capSum)."\"></p><div class=\"clear\"></div>";
    	$cform .= "<p class=\"sub\"><input type=\"submit\" name=\"c_submit\" value=\"Submit\" class=\"search-submit\" /></p>
    		</form>
    	</div>";
    
        return $cform;
    }
    add_shortcode( 'contactform', 'contactform_func' );
    
    //custom post type for Our photogallery
    function my_custom_post_photogallery() {
    	$labels = array(
    		'name'               => __( 'Photo Gallery','skt-befit' ),
    		'singular_name'      => __( 'Photo Gallery','skt-befit' ),
    		'add_new'            => __( 'Add New','skt-befit' ),
    		'add_new_item'       => __( 'Add New Image','skt-befit' ),
    		'edit_item'          => __( 'Edit Image','skt-befit' ),
    		'new_item'           => __( 'New Image','skt-befit' ),
    		'all_items'          => __( 'All Images','skt-befit' ),
    		'view_item'          => __( 'View Image','skt-befit' ),
    		'search_items'       => __( 'Search Images','skt-befit' ),
    		'not_found'          => __( 'No images found','skt-befit' ),
    		'not_found_in_trash' => __( 'No images found in the Trash','skt-befit' ), 
    		'parent_item_colon'  => '',
    		'menu_name'          => 'Photo Gallery'
    	);
    	$args = array(
    		'labels'        => $labels,
    		'description'   => 'Manage Photo Gallery',
    		'public'        => true,
    		'menu_icon'		=> 'dashicons-format-image',
    		'menu_position' => null,
    		'supports'      => array( 'title', 'thumbnail' ),
    		'has_archive'   => true,
    	);
    	register_post_type( 'photogallery', $args );
    }
    add_action( 'init', 'my_custom_post_photogallery' );
    
    //  register gallery taxonomy
    register_taxonomy( "gallerycategory", 
    	array("photogallery"), 
    	array(
    		"hierarchical" => true, 
    		"label" => "Gallery Category", 
    		"singular_label" => "Photo Gallery", 
    		"rewrite" => true
    	)
    );
    
    add_action("manage_posts_custom_column",  "photogallery_custom_columns");
    add_filter("manage_edit-photogallery_columns", "photogallery_edit_columns");
    function photogallery_edit_columns($columns){
    	$columns = array(
    		"cb" => '<input type="checkbox" />',
    		"title" => "Gallery Title",
    		"pcategory" => "Gallery Category",
    		"view" => "Image",
    		"date" => "Date",
    	);
    	return $columns;
    }
    function photogallery_custom_columns($column){
    	global $post;
    	switch ($column) {
    		case "pcategory":
    			echo get_the_term_list($post->ID, 'gallerycategory', '', ', ','');
    		break;
    		case "view":
    			the_post_thumbnail('thumbnail');
    		break;
    		case "date":
    
    		break;
    	}
    }
    
    //[photogallery filter="false"]
    function photogallery_shortcode_func( $atts ) {
    	extract( shortcode_atts( array(
    		'show' => -1,
    		'filter' => 'true'
    	), $atts ) );
    	$pfStr = '';
    
    	$pfStr .= '<div class="photobooth">';
    	if( $filter == 'true' ){
    		$pfStr .= '<div class="filter-gallery"><ul class="clean" id="filter"><li class="current"><a href="javascript:void(0)">All</a></li>';
    		$categories = get_categories( array('taxonomy' => 'gallerycategory') );
    		foreach ($categories as $category) {
    			$pfStr .= '<li><a href="javascript:void(0)">'.$category->name.'</a></li>';
    		}
    		$pfStr .= '</ul></div>';
    	}
    
    	$pfStr .= '<div class="gallery"><ul class="clean" id="portfolio">';
    	$j=0;
    	query_posts('post_type=photogallery&posts_per_page='.$show); 
    	if ( have_posts() ) : while ( have_posts() ) : the_post(); 
    	$j++;
    		$videoUrl = get_post_meta( get_the_ID(), 'video_file_url', true);
    		$imgSrc = wp_get_attachment_image_src( get_post_thumbnail_id(), array(370, 250));
    		$terms = wp_get_post_terms( get_the_ID(), 'gallerycategory', array("fields" => "all"));
    		$slugAr = array();
    		foreach( $terms as $tv ){
    			$slugAr[] = $tv->slug;
    		}
    		if ( $imgSrc[0]!='' ) {
    			$imgUrl = $imgSrc[0];
    		}else{
    			$imgUrl = get_template_directory_uri().'/images/img_404.png';
    		}
    		$pfStr .= '<li class="'.implode(' ', $slugAr).'" '.( ($j%3==0) ? 'style="margin-right:0"' : '' ).'>
                    <strong>'.get_the_title().'</strong>                
     <a href="'.( ($videoUrl) ? $videoUrl : $imgSrc[0] ).'" rel="prettyPhoto[pp_gal]"><img src="'.$imgSrc[0].'"/></a>
                </li>';
    		unset( $slugAr );
    	endwhile; else: 
    		$pfStr .= '<p>Sorry, photo gallery is empty.</p>';
    	endif; 
    	wp_reset_query();
    	$pfStr .= '</ul></div>';
    	$pfStr .= '<div class="clear"></div></div>';
    	return $pfStr;
    }
    add_shortcode( 'photogallery', 'photogallery_shortcode_func' );
    
    /*toggle function*/
    function toggle_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'title' => 'Click here to toggle content',
    	), $atts ) );
    	$tog_content = "<div class=\"toggle_holder\"><h3 class=\"slide_toggle\"><a href=\"#\">{$title}</a></h3>
    					<div class=\"slide_toggle_content\">".get_the_content_format( $content )."</div></div>";
    
    	return $tog_content;
    }
    add_shortcode( 'toggle_content', 'toggle_func' );
    
    function tabs_func( $atts, $content = null ) {
    	$tabs = '<div class="tabs-wrapper"><ul class="tabs">'.do_shortcode($content).'</ul></div>';
    	return $tabs;
    }
    add_shortcode( 'tabs', 'tabs_func' );
    
    function tab_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'title' => 'Tab Title',
    	), $atts ) );
    	$rand = rand(100,999);
    	$tab = '<li><a rel="tab'.$rand.'" href="javascript:void(0)"><span>'.$title.'</span></a><div id="tab'.$rand.'" class="tab-content">'.get_the_content_format($content).'</div></li>';
    	return $tab;
    }
    add_shortcode( 'tab', 'tab_func' );
    
    function gradient_button_func( $atts ) {
    	extract( shortcode_atts( array(
    		'size' => 'small',
    		'bg_color' => '#636b74',
    		'color' => '#fff',
    		'text' => 'More',
    		'title' => 'Click',
    		'url' => '',
    		'position' => 'center',
    	), $atts ) );
    	$btn  = "<div class=\"clear\"></div>";
    	$btn .= "<a href=\"{$url}\" "; 
    	$btn .= ($title != "") ? " title=\"{$title}\" " : "";
    	$btn .= "class=\"grad-btn-{$size} btn-align-{$position}\" style=\"background-color:{$bg_color}; color:{$color}\">";
    	$btn .= "{$text}</a>";
    	$btn  .= "<div class=\"clear\"></div>";
    
    	return $btn;
    }
    add_shortcode( 'gradient_button', 'gradient_button_func' );
    
    function simple_button_func( $atts ) {
    	extract( shortcode_atts( array(
    		'size' => 'small',
    		'bg_color' => '#636b74',
    		'color' => '#fff',
    		'text' => 'More',
    		'title' => 'Click',
    		'url' => '',
    		'position' => 'left',
    	), $atts ) );
    	$btn  = "<div class=\"clear\"></div>";
    	$btn .= "<a href=\"{$url}\" ";  
    	$btn .= ($title != "") ? " title=\"{$title}\" " : "";
    	$btn .= "class=\"simple-btn-{$size} btn-align-{$position}\" style=\"background-color:{$bg_color}; color:{$color}\">";
    	$btn .= "{$text}</a>";
    	$btn  .= "<div class=\"clear\"></div>";
    
    	return $btn;
    }
    add_shortcode( 'simple_button', 'simple_button_func' );
    
    function round_button_func( $atts ) {
    	extract( shortcode_atts( array(
    		'style' => 'dark',
    		'text' => 'More',
    		'title' => 'Click',
    		'url' => '',
    		'position' => 'left',
    	), $atts ) );
    	$btn  = "<div class=\"clear\"></div>";
    	$btn .= "<a href=\"{$url}\" ";
    	$btn .= ($title != "") ? " title=\"{$title}\" " : ""; 
    	$btn .= "class=\"round-btn-{$style} round-btn btn-align-{$position}\">";
    	$btn .= "<span>{$text}</span></a>";
    	$btn  .= "<div class=\"clear\"></div>";
    
    	return $btn;
    }
    add_shortcode( 'round_button', 'round_button_func' );
    
    function msg_box_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'type' => 'info',
    		'bg_color' => '#f6f6f6',
    		'color' => '#333',
    		'start_color' => "#fff",
    		'end_color' => "#eee",
    		'border' => "#ccc",
    		'align' => '',
    		'width' => '100%',
    	), $atts ) );
    	$msg = '';
    
    	if($type == 'success'){
    		$msg  = '<div class="msg-success"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'success' style message box shortcode. To use this style use the following shortcode" : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'error'){
    		$msg  = '<div class="msg-error"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'error' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'warning'){
    		$msg  = '<div class="msg-warning"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'warning' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'info'){
    		$msg  = '<div class="msg-info"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'info' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'about'){
    		$msg  = '<div class="msg-about"><div class="msg-box-icon">';
    		$msg .= ($content == '') ? "This is a sample of the 'about' style message box shortcode. To use this style use the following shortcode." : $content;
    		$msg .= '</div></div>';
    	}elseif($type == 'custom'){
    		$msg  = "<div style=\"width:{$width};\" class=\"msg-align-{$align}\"><div class=\"msg-custom\" style=\"background-color:{$end_color}; background: -moz-linear-gradient(center top , {$start_color}, {$end_color}); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from({$start_color}), to({$end_color})); background: -webkit-linear-gradient(top, {$start_color}, {$end_color}); background: -ms-linear-gradient(top, {$start_color}, {$end_color}); background: -o-linear-gradient(top, {$start_color}, {$end_color}); border:1px {$border} solid; color:{$color};\">";
    		$msg .= ($content == '') ? "This is a sample of the 'simple' style message box shortcode." : $content;
    		$msg .= '</div></div><div class="clear"></div>';
    	}elseif($type == 'simple'){
    		$msg  = "<div class=\"msg-simple\" style=\"background-color:{$bg_color}; color:{$color};\">";
    		$msg .= ($content == '') ? "This is a sample of the 'simple' style message box shortcode." : $content;
    		$msg .= '</div>';
    	}
    	return $msg;
    }
    add_shortcode( 'message', 'msg_box_func' );
    
    function unorderedlist_func( $atts, $content = null ) {
    	extract( shortcode_atts( array(
    		'style' => 'list-1',
    	), $atts ) );
    	$content = wpautop(trim($content));
    	$ulist = '<ul class="'.$style.'">'.$content.'</ul>';
    	return $ulist;
    }
    add_shortcode( 'unordered_list', 'unorderedlist_func' );
    
    function heading_title_func( $atts, $content = null ) {
       extract( shortcode_atts( array(	
    	'underline'	=> '',
    	'align'		=> ''	
    	), $atts ) ); 
    	$hdntitle = '<h2 class="heading '.( (strtolower($underline) == 'yes') ? 'underline' : '' ).'" '.( ($align!='') ? 'style="text-align:'.$align.' !important;"' : '' ) .'>'.do_shortcode( $content ) .'</h2>'; 
        return $hdntitle;
    }
    add_shortcode( 'heading', 'heading_title_func' );
    
    // add shortcode for skills
    function skt_befit_skills($skt_skill_var){
    	extract( shortcode_atts(array(
    		'title' 	=> 'title',
    		'percent'	=> 'percent',
    		'bgcolor'	=> 'bgcolor',
    	), $skt_skill_var));
    	
    	return '<div class="skillbar clearfix " data-percent="'.$percent.'%">
    			<div class="skillbar-title"><span>'.$title.'</span></div>
    			<div class="skill-bg"><div class="skillbar-bar" style="background:'.$bgcolor.'"></div></div>
    			<div class="skill-bar-percent">'.$percent.'%</div>
    			</div>';
    }
    
    add_shortcode('skill','skt_befit_skills');
    
    /*clients function*/
    function skt_client_logos($atts, $content = null){
    	return '<div class="client_lists">'.do_shortcode($content).'</div>';
    	}
    add_shortcode('client_lists','skt_client_logos');
    
    function skt_client($atts){
    	extract(shortcode_atts(array(
    	'image'	=> '',
    	'link'	=> '#',
    	'clear'	=> ''
    	), $atts));
    	return '<div class="client '.$clear.'"><a href="'.$link.'" target="_blank"><img src="'.$image.'" /></a></div>';
    	}
    add_shortcode('client','skt_client');
    
    // [iconlist title="title" icon="icon"]
    function skt_listicon($skt_var){
    		extract( shortcode_atts(array(
    			'title' => 'title',
    			'link' => '',
    			'icon'  => get_template_directory_uri().'/images/facebook-icon.png',
    		), $skt_var));
    		
    		return '<div class="iconlistarea">
    			<ul>
    				<li><a target="_blank" href="'.$link.'"><img src="'.$icon.'" />'.$title.'</a></li>
    			</ul>
    		</div>';
    }
    add_shortcode('iconlist','skt_listicon');
    
    define('SKT_THEME_DOC','http://sktthemesdemo.net/documentation/skt-befit-doc/');

    Regards,
    Brad

    #24078
    mishi bhatnagarmishi bhatnagar
    Member
    • Topics: 1
    • Replies: 5
    • Total: 6
    Member since: October 10, 2015

    Hi Dave..

    Have applied your suggested changes.
    But things not looking as they should in responsive layout.

    #Issue 1 – Footer for Tablet and Phone screen size (Portrait orientation)
    Footer elements not properly centering
    Images not centering in footer
    Elements not aligning properly (in a straight line)
    Elements not exactly in center

    #Issue 2 – for Header logo in computer screen size
    Logo image appears smaller and not placed at the left

    #Issue 3-
    Background color not appearing behind sidebar in Tablet and Phone screen size landscape layout

    #Issue 4 – Pleasure box and product box
    Boxes not equally sized in different screen sizes (Tablet and Phone Portrait and Landscape, IE in computer screen size)

    #Issue 5 – Page: http://cakewalkbakehouse.in/exotic-desserts-in-bhopal/
    Why do boxes appear that way in Portrait layout (Tablet and Phone screen size)? All over the place.

    I will be happy to share login details with you.. Please help me set up my website properly.

    #24074

    In reply to: Naturo Pro Q's

    RebeccaRebecca
    Member
    • Topics: 4
    • Replies: 11
    • Total: 15
    Member since: December 4, 2015

    Thank you, I still need

    1) the team members are still out of order, I have them listed in the order I would want under “our team” from top to bottom but that is not how they are listed on the front page. I also have the plugin. Also, I would like them in two lines, not all on one if possible.

    2) did not work, the rest of the homepage box that lights up still does not take me to where the button link goes

    3) The buttons on the newsletter sign up forms are not matching the theme. Is there any way to make them match the “search” widget format. You can see what I mean if you look at my main sidebar on the strategies page. The theme button is flat and rounded edges, the newsletter button even after the additional coding are square and beveled. Also the text in the box is light gray in the theme, the text in the newsletter box is black

    4) My images are stretching depending on the size of the screen. Is there any way to make them proportionally increase or decrease?

    5) Is there a way to change the color of the horizontal separator?

    Here is my website: http://3b8.6c3.myftpupload.com/

    #24027

    In reply to: Background

    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi John,

    I don’t think we can apply opacity to the background because there is nothing behind background to judge its opacity.

    Lastly i see the background 1 color full wide and not tiled so i think you got it.

    Regards,
    Brad

    #24011
    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi John,

    Kindly Add this code in custom CSS Box.

    @media screen and (max-width: 767px) {
    .toggle a{background-color:#eee !important;}
    .nav ul{background:#000000 !important;}
    }

    Regards,
    Brad

    #24006

    In reply to: Contact Form 7 Css

    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi daniel and shivam,

    Contact Form 7 generates a standard compliant code for the forms. Each element in the form has a proper ID and CSS class associated with it.
    Contact form uses the CSS class .wpcf7 which you can use to style your form.

    For e.g.:

    div.wpcf7 { 
    background-color: #fbefde;
    border: 1px solid #f28f27;
    padding:20px;
    }
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 textarea {
    background:#725f4c;
    color:#FFF;
    font-family:lora, sans-serif; 
    font-style:italic;    
    }
    .wpcf7 input[type="submit"],
    .wpcf7 input[type="button"] { 
    background-color:#725f4c;
    width:100%;
    text-align:center;
    text-transform:uppercase;
    }

    You can add this code for example in your custom css box

    Regards,
    Brad

    #23876

    In reply to: Input Text type

    EduardoEduardo
    Member
    • Topics: 1
    • Replies: 1
    • Total: 2
    Member since: February 17, 2016

    Hi Brad,

    when I put “” in custom css, the theme replace for "

    below is an example of the code source of the page

    #contactform_main input[type="text"]{
    color: blue;
    }

    .wpcf7 form input[type="text"]{
    color: blue;
    }

    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Hovav,

    Kindly add this code in custom css box:

    .blog-post-repeat{background-color:none !important;}

    Regards,
    Shri

    #23835
    Brian DimitroffBrian Dimitroff
    Member
    Member since: April 10, 2015

    In the default SKT Charity template the icons in the four Services boxes change color on mouseover, which I think is cool. When linking the services to a page with a featured image on the sections tab, this color change effect gets lost. I was able to create png image files that mimic the format of the default ‘donation-image-(1-4).png’ files where there’s a white image on top and an identical colored image underneath. If I save them in the images folder using the same file names as the corresponding defaults they look great and have the same color change effect, but as soon as I link a page to these boxes using the Sections tab the image references get overridden by the featured image for the page.

    Is it possible to alter the index.php file so that only the text is pulled from the pages specified on the sections tab, while the icons are still pulled from whatever png image files are named ‘donation-image-1.png’ thru ‘donation-image-4.png’ in the images folder? That way we can still have the cool color change effect for the icons.

    Thanks for the help!

    #23814

    In reply to: Layout posts questions

    Sonal S SinhaSonal S Sinha
    Moderator
    • Topics: 0
    • Replies: 31283
    • Total: 31283
    Member since: August 16, 2013

    Hi Marinus,

    Kindly go to Appereance>>Theme Option>>Basic Setting>>Custom CSS Box

    Add this code:

    h2.entry-title a{font-size:30px !important;}
    .postmeta{display:none;}
    #comments{display:none;}

    For the plus sign: It is an image you have to change the color of that image to red.

    Regards,
    Brad

    #23769
    EduardoEduardo
    Member
    Member since: February 17, 2016

    How can I change the settings that size, color, border of the field input type=text? I used contact form 7. website is http://www.cbselos.com.br/site

    I tried make this on custom css but didn´t work.

    Regards

    #23762
    Dianne KalafDianne Kalaf
    Member
    Member since: September 8, 2015

    Hi I was wondering how to put my phone number in the header. I tried using the shortcode
    .header:after {
    content: “call us: 917-560-8273”;
    width: 195px;
    display: block;
    padding: 60px 50px;
    border-radius: 0 04px 5px;
    background: #000;
    font-size: 20px;
    text-align: right;
    color: #9bd671;
    position: absolute;
    top: 0;
    right: 50%;
    margin-right: -500px;
    }

    The problem is that when I look at the site on a mobile device it doesn’t look right. I know this is supposed to be a responsive theme so could you help me out with this? Thanks.
    bridgeandtunnelmail.com

    #23754
    JasonJason
    Member
    Member since: January 14, 2016

    I have decided to change my background color to a light background on my shop, but the default text is white. There is not enough contrast, so I’d like to change the text on those pages to something darker. Please point me to a custom CSS code to solve my problem. Thanks so much!

Viewing 15 results - 2,791 through 2,805 (of 3,301 total)