-
AuthorSearch Results
-
January 6, 2017 at 5:21 am #57552
In reply to: Medical Pro – french
Hi Sophie,
Kindly go to inc/custom-functions.php and change the text from there.
Regards,
DaveJanuary 5, 2017 at 6:59 am #57446In reply to: Google tracking code
Hi András,
For “Get A Quate” button kindly go to header.php (Lin no. 91) and change the code from there.
Regards,
DaveJanuary 4, 2017 at 12:06 pm #57338Topic: Featured Image for Perfect theme
in forum All Other ThemesI want to remove the featured image for few pages not from all the pages. How can I do that.
neilex.com/index.php/what-we-do/Also I created button using site origin feature and I want this should change it colour to black when hovering mouse over. same as that of home page slider button.
Please help
January 4, 2017 at 12:01 pm #57336In reply to: SKT White Pro – maximum number of "our team" in hp
Hi Amedeo,
Kindly go to wp-content/themes/skt-white-pro/inc/custom-functions.php
and replace the code with below code:
<?php /** * @package SKT White * Setup the WordPress core custom functions feature. * */ // 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' => '50', ), $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' ); //[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:35px;">'.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' ); // 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-white' ), $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; } //custom post type for Our Team function my_custom_post_team() { $labels = array( 'name' => __( 'Our Team', 'skt-white' ), 'singular_name' => __( 'Our Team', 'skt-white' ), 'add_new' => __( 'Add New', 'skt-white' ), 'add_new_item' => __( 'Add New Team Member', 'skt-white' ), 'edit_item' => __( 'Edit Team Member', 'skt-white' ), 'new_item' => __( 'New Team Member', 'skt-white' ), 'all_items' => __( 'All Team Members', 'skt-white' ), 'view_item' => __( 'View Team Members', 'skt-white' ), 'search_items' => __( 'Search Team Members', 'skt-white' ), 'not_found' => __( 'No team members found', 'skt-white' ), 'not_found_in_trash' => __( 'No team members found in the Trash', 'skt-white' ), 'parent_item_colon' => '', 'menu_name' => 'Our Team' ); $args = array( 'labels' => $labels, 'description' => 'Manage Team', 'public' => true, 'menu_icon' => 'dashicons-groups', 'menu_position' => null, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'has_archive' => true, ); register_post_type( 'team', $args ); } add_action( 'init', 'my_custom_post_team' ); 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 teamoutput_func( $atts ) { extract( shortcode_atts( array( 'show' => -1, ), $atts ) ); $teamoutput = '<div class="team-members">'; wp_reset_query(); $k = 0; query_posts('post_type=team&posts_per_page='.$show); if ( have_posts() ) : while ( have_posts() ) : the_post(); $k++; $teamoutput .= '<div class="team-col"><div class="teamthumbs"><a href="'.get_the_permalink().'">'.get_the_post_thumbnail().'</a></div> <h3>'.get_the_title().'</h3> '.content( of_get_option('teamexcerptlength') ).' </div>'.(($k%4==0) ? '<div class="clear"></div>' : ''); endwhile; endif; wp_reset_query(); $teamoutput .= '<div class="clear"></div>'; $teamoutput .= '</div>'; return $teamoutput; } add_shortcode( 'ourteam', 'teamoutput_func' ); function testimonialoutput_func( $atts ){ $testimonialoutput = ''; wp_reset_query(); $n = 0; query_posts('post_type=testimonial&posts_per_page=3'); if ( have_posts() ) : while ( have_posts() ) : the_post(); $n++; if( $n%3 == 0 ) $nomgn = ' last'; else $nomgn = ' '; $testimonialoutput .= '<div class="testimonial-box'.$nomgn.'">'.get_the_post_thumbnail( get_the_ID(), array(82,82) ).' <div class="testimonial-post"> <h4>'.get_the_title().'</h4> '.content( of_get_option('testimonialslength') ).' </div> </div>'; endwhile; else: $testimonialoutput .= '<p>Sorry, testimonials is empty.</p>'; endif; wp_reset_query(); $testimonialoutput .= '<div class="clear"></div>'; return $testimonialoutput; } add_shortcode( 'testimonials', 'testimonialoutput_func' ); //Social function skt_white_social_area($atts,$content = null){ return '<div class="social-icons">'.do_shortcode($content).'</div>'; } add_shortcode('social_area','skt_white_social_area'); function skt_white_social($atts){ extract(shortcode_atts(array( 'icon' => '', 'link' => '' ),$atts)); return '<a href="'.$link.'" target="_blank" class="fa fa-'.$icon.' fa-2x" title="'.$icon.'"></a>'; } add_shortcode('social','skt_white_social'); // Social function latestpostsoutput_func( $atts ){ extract( shortcode_atts( array( 'show' => '', ), $atts ) ); $postoutput = ''; wp_reset_query(); $n = 0; //global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array('posts_per_page' => $show, 'paged' => $paged, 'post__not_in' => get_option('sticky_posts') ); query_posts( $args ); if ( have_posts() ) : while ( have_posts() ) : the_post(); $n++; if( $n%4==0 ) $nomgn = 'last'; else $nomgn = ' '; if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); $imgUrl = $large_image_url[0]; }else{ $imgUrl = get_template_directory_uri().'/images/img_404.png'; } $postoutput .= '<div class="news-box '.$nomgn.'"> <div class="news"> <div class="newsthumbbx"><a href="'.get_the_permalink().'"><img src="'.$imgUrl.'" alt=" " /></a></div> <h4><a href="'.get_the_permalink().'">'.get_the_title().'</a></h4> <div style="float:left;">'.get_the_date().'</div> <div style="float:right;color:#cccccc;font-weight:bold;font-size:15px"><img style="width:auto;float:left;position:relative;top:3px;" src="'.get_template_directory_uri().'/images/icon-comment.png" /> '.get_comments_number().'</div><div class="clear"></div> </div> </div>'; endwhile; $postoutput .= '<div class="post-nav">'; $postoutput .= '<div class="prev-page">' . get_previous_posts_link( "« Newer Entries" ) . '</div>'; $postoutput .= '<div class="next-page">' . get_next_posts_link( "Older Entries »", 3 ) . '</div>'; $postoutput .= '</div>'; endif; wp_reset_query(); $postoutput .= '<div class="clear"></div>'; return $postoutput; } add_shortcode( 'latestposts', 'latestpostsoutput_func' ); function social_media_func( $atts ) { $pcol = '<div class="social-icons">'; if( of_get_option('facebook', true)!= '' ) $pcol .= '<a href="'.of_get_option('facebook', true).'"><div class="icon-fb"></div></a>'; if( of_get_option('twitter', true)!= '' ) $pcol .= '<a href="'.of_get_option('twitter', true).'"><div class="icon-twitt"></div></a>'; if( of_get_option('youtube', true)!= '' ) $pcol .= '<a href="'.of_get_option('youtube', true).'"><div class="icon-ytube"></div></a>'; if( of_get_option('rss', true)!= '' ) $pcol .= '<a href="'.of_get_option('rss', true).'"><div class="icon-rss"></div></a>'; if( of_get_option('linkedin', true)!= '' ) $pcol .= '<a href="'.of_get_option('linkedin', true).'"><div class="icon-in"></div></a>'; $pcol .= '<div class="clear"></div></div>'; return $pcol; } add_shortcode( 'social_icons', 'social_media_func' ); function contactform_func( $atts ) { $atts = shortcode_atts( array( 'to_email' => get_bloginfo('admin_email'), 'title' => 'Contact enquiry - '.get_bloginfo('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'] ); $website = trim( $_POST['c_website'] ); $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 question / comments.'; 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>Website: </td><td>'.$website.'</td></tr> <tr><td>Comments: </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, $website, $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 class=\"left\"><input type=\"text\" name=\"c_name\" value=\"". ( ( empty($name) == false ) ? $name : "" ) ."\" placeholder=\"Name\" /></p> <p class=\"right\"><input type=\"email\" name=\"c_email\" value=\"". ( ( empty($email) == false ) ? $email : "" ) ."\" placeholder=\"Email\" /></p><div class=\"clear\"></div> <p class=\"left\"><input type=\"tel\" name=\"c_phone\" value=\"". ( ( empty($phone) == false ) ? $phone : "" ) ."\" placeholder=\"Phone\" /></p> <p class=\"right\"><input type=\"url\" name=\"c_website\" value=\"". ( ( empty($website) == false ) ? $website : "" ) ."\" placeholder=\"Website with prefix http://\" /></p><div class=\"clear\"></div> <p><textarea name=\"c_comments\" placeholder=\"Message\">". ( ( empty($comments) == false ) ? $comments : "" ) ."</textarea></p>"; $cform .= "<p class=\"left\">$sumStr<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\" /></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-white' ), 'singular_name' => __( 'Photo Gallery','skt-white' ), 'add_new' => __( 'Add New','skt-white' ), 'add_new_item' => __( 'Add New Image / Video','skt-white' ), 'edit_item' => __( 'Edit Image/Video','skt-white' ), 'new_item' => __( 'New Image/Video','skt-white' ), 'all_items' => __( 'All Images/Videos','skt-white' ), 'view_item' => __( 'View Image/Video','skt-white' ), 'search_items' => __( 'Search Images/Videos','skt-white' ), 'not_found' => __( 'No images/videos found','skt-white' ), 'not_found_in_trash' => __( 'No images/videos found in the Trash','skt-white' ), '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', 'editor', '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(), 'full'); $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%4==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' ); 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 skt_client_banner_main($atts, $content = null){ return '<div class="client_banner">'.do_shortcode($content).'</div>'; } add_shortcode('client_main','skt_client_banner_main'); 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'); define('SKT_PRO_THEME_URL','https://www.sktthemes.org/themes/skt-white-pro/'); define('SKT_THEME_DOC','http://sktthemesdemo.net/documentation/skt-white-doc/'); define('SKT_FORUM','https://www.sktthemes.org/forums/');
Regards,
DaveJanuary 4, 2017 at 7:01 am #57290In reply to: Can't edit some parts
Hi Vanessa,
Kindly check the documentation here:
http://sktthemesdemo.net/documentation/perfect-documentation/#customize-footerClick on edit content and change the content in text editor after that click on visual editor and click save on save button.
For the “Read+” go to content.php and change the text from there.
Regards,
DaveJanuary 2, 2017 at 10:16 am #57089In reply to: Display Posts Column
Hey David,
That is not what I meant. Your solution is if I only wanted to show 2 posts, but I don’t. I want to show many posts but in 2 columns. I fiddled around with the custom_functions php and was able to change it to display two posts per row, but as you can see at www.neverendingworldtour.com it is still spaced as if there is to be 3 columns. I just want the columns to be wider where it displays my posts under “latest blog posts”
January 2, 2017 at 5:43 am #57070In reply to: skt wedding pro wedding events situation
Hi Tomi,
In the php code you can change the start date and name of the event.
<?php echo do_shortcode(‘[time_table] [time_table_row title=”EVENTS” start=”DATE”] [time_table_row title=”ADD EVENT NAME HERE” start=”ADD DATE HERE″] [time_table_row title=”ADD EVENT NAME HERE” start=”ADD DATE HERE″] [time_table_row title=”ADD EVENT NAME HERE” start=”ADD DATE HERE″] [time_table_row title=”ADD EVENT NAME HERE” start=”ADD DATE HERE″] [/time_table]’); ?>
Regards,
DaveDecember 31, 2016 at 3:52 pm #57017Topic: skt wedding pro wedding events situation
in forum All Other Themeshi,
I’m using SKT Weddings Pro. I’ve created wedding events with PHP code (https://www.sktthemes.org/forums/topic/skt-wedding-pro-wedding-events/)
but i can’t change date and events, its on factory default settings. I want to change this, and i wish to know where that “submit” from reservation form goes? can that go to my email? Thanks a lot!!
website is: nase-vjencanje.net
And Happy New Year!!!! 😉I allready have checked the content.php and changed it here. But it doesn’t show on the frontside.
<?php if ( is_search() || !is_single() ) : // Only display Excerpts for Search ?>
<div class=”entry-summary”>
<p><?php echo wp_trim_words( get_the_content(), of_get_option(‘blogpostpagecontent’), ‘…’ ); ?></p>
” class=”read-more”><?php echo of_get_option(‘readmoretext’); ?>
</div><!– .entry-summary –>
<?php else : ?>
<div class=”entry-content”>
<?php the_content( __( ‘Lees Meer <span class=”meta-nav”>→</span>’, ‘skt-shudh’ ) ); ?>
<?php
wp_link_pages( array(
‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘skt-shudh’ ),
‘after’ => ‘</div>’,
) );
?>
</div><!– .entry-content –>
<?php endif; ?>December 27, 2016 at 5:55 pm #56701Topic: Hentry – Search Console (google webmaster) Messages
in forum All Other ThemesHi Team,
Hoping you can help with this. I recently changed a client wordpress site over to legalexpert theme from you. I am now receiving the following in my search console from google.
Crawled: 12/24/16
Data only shows detected fields and may be different than live data.
hentry
itemtype:
http://microformats.org/profile/hentry
entry-title:
Nevada Asset Protection Trust Basics (Nevada Spendthrift Trust)
entry-content:
*New – Nevada Law now explicitly allows a Trust created in another state to change jurisdiction to Nevada for better asset protection! (click for more information) In terms of Personal Asset…
Use the Structured Data Testing Tool to check live data for errors.I have 60 of these entries for various pages. I have tried to google it some, but it seems that all of the research points to a the functions.php page entries. However, your are the expert so I am hoping you can help.
I am running WP 4.7, legal expert pro 1.0, and All in one SEO.
Thanks in advance.
Scott
December 23, 2016 at 8:00 pm #56541In reply to: Image Category does not work in Hotel Pro
I figured out the problem.
In the file inc/custom-functions.php change “gallery_category” to “gallerycategory”. This way gallery category can now be displayed properly.
Diana
December 23, 2016 at 9:12 am #56488In reply to: Contact form on Legal Expert
Hi Breda,
Kindly use this plugin: https://wordpress.org/plugins/php-code-widget/
Drag and drop php text widget in sidebar and use contact form shortcode inside the widget.
Regards,
DaveDecember 22, 2016 at 10:33 am #56410In reply to: fonts show default again after changing
Hi Brad,
Sorry for the inconvience.
I figured out that my provider by default installs wp without the possibility to edit the files.
I changed it in the wp-config.php
define(‘DISALLOW_FILE_EDIT’, false);Please check again if you are able to solve it now.
December 22, 2016 at 9:35 am #56393In reply to: Help with skt white pro template
Hi,
Kindly go to header.php and copy the navigation code and place it above the slider code.
Regards,
DaveDecember 22, 2016 at 6:28 am #56369In reply to: Banners will not show up
Hi Brittany,
Kindly install this plugin: https://wordpress.org/plugins/php-code-widget/
Drag and drop php widget in sidebar and use your html code inside the php widget.
Regards,
Dave -
AuthorSearch Results
Search Results for 'php'
-
Search Results
-
I want to remove the featured image for few pages not from all the pages. How can I do that.
neilex.com/index.php/what-we-do/Also I created button using site origin feature and I want this should change it colour to black when hovering mouse over. same as that of home page slider button.
Please help
hi,
I’m using SKT Weddings Pro. I’ve created wedding events with PHP code (https://www.sktthemes.org/forums/topic/skt-wedding-pro-wedding-events/)
but i can’t change date and events, its on factory default settings. I want to change this, and i wish to know where that “submit” from reservation form goes? can that go to my email? Thanks a lot!!
website is: nase-vjencanje.net
And Happy New Year!!!! 😉Hi Team,
Hoping you can help with this. I recently changed a client wordpress site over to legalexpert theme from you. I am now receiving the following in my search console from google.
Crawled: 12/24/16
Data only shows detected fields and may be different than live data.
hentry
itemtype:
http://microformats.org/profile/hentry
entry-title:
Nevada Asset Protection Trust Basics (Nevada Spendthrift Trust)
entry-content:
*New – Nevada Law now explicitly allows a Trust created in another state to change jurisdiction to Nevada for better asset protection! (click for more information) In terms of Personal Asset…
Use the Structured Data Testing Tool to check live data for errors.I have 60 of these entries for various pages. I have tried to google it some, but it seems that all of the research points to a the functions.php page entries. However, your are the expert so I am hoping you can help.
I am running WP 4.7, legal expert pro 1.0, and All in one SEO.
Thanks in advance.
Scott