samtemehr
Forum Replies Created
Viewing 12 replies - 1 through 12 (of 12 total)
-
Forum: Plugins
In reply to: [Zeno Font Resizer] how translate to same lang?hi
why not approved?https://translate.www.ads-software.com/projects/wp-plugins/zeno-font-resizer/dev/fa/default/
- This reply was modified 5 years, 4 months ago by samtemehr.
Forum: Reviews
In reply to: [YUZO] Best plugin for related posts!Yuzo Related Posts – Unauthenticated Call Any Action or Update Any Option
Forum: Fixing WordPress
In reply to: help:exclude first post from posts for a tagthanks
Forum: Fixing WordPress
In reply to: help:exclude first post from categoryexclude first post from tag?
<?php $my_custom_query= new WP_Query(array( 'post_type' => 'post', 'post_status' => 'publish', 'tag' => 'test', 'order' => 'DESC', 'posts_per_page' =>'4', )); if($my_custom_query->have_posts()) : while($my_custom_query->have_posts()) : $my_custom_query->the_post(); ?>
Forum: Fixing WordPress
In reply to: not loaded current category posts<?php $category = get_the_category(); $category_id = $category[0]->cat_ID; ?>
Forum: Fixing WordPress
In reply to: How Reference category ID in the same categorynot loaded category posts?
<?php $category_id = get_cat_ID( 'Category Name' ); $category_link = get_category_link( $category_id ); ?> <?php query_posts("cat=$category_id&showposts=1"); ?>
- This reply was modified 6 years, 4 months ago by samtemehr.
Forum: Fixing WordPress
In reply to: How Reference category ID in the same categoryForum: Fixing WordPress
In reply to: How instal more css file to more page?I found. ??
function et_load_samtemehr_scripts() { $template_dir = get_template_directory_uri(); $theme_version = et_get_theme_version(); wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ) , $theme_version, true ); wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' ); wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true); wp_enqueue_style( 'samtemehr-style', get_stylesheet_uri(), array(), $theme_version ); //***** this is your code *****// if ( !is_single() ) { wp_enqueue_script( 'samtemehr-index', $template_dir . '/js/index.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_style( 'samtemehr-index', $template_dir . '/css/index.min.css', $theme_version, true ); } if ( !is_front_page() ) { wp_enqueue_script( 'samtemehr-content', $template_dir . '/js/newstext.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_style( 'samtemehr-content', $template_dir . '/css/newstext.min.css', $theme_version, true ); } } add_action( 'wp_enqueue_scripts', 'et_load_samtemehr_scripts' );
Forum: Fixing WordPress
In reply to: How instal more css file to more page?my code is this.
But not loaded…function et_load_samtemehr_scripts() { $template_dir = get_template_directory_uri(); $theme_version = et_get_theme_version(); wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ) , $theme_version, true ); wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' ); wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true); wp_enqueue_style( 'samtemehr-style', get_stylesheet_uri(), array(), $theme_version ); //***** this is your code *****// if ( is_page_template( 'single.php' ) ) { wp_enqueue_script( 'samtemehr-index', $template_dir . '/js/index.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_style( 'samtemehr-index', $template_dir . '/css/index.min.css', $theme_version, true ); } } add_action( 'wp_enqueue_scripts', 'et_load_samtemehr_scripts' );
Forum: Fixing WordPress
In reply to: How instal more css file to more page?not loaded…
function samtemehr_index_scripts() { if ( is_page_template( 'index.php' ) ) { wp_enqueue_style( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/css/index.min.css' ); wp_enqueue_script( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/js/index.min.js' ); } } add_action( 'wp_enqueue_scripts', 'samtemehr_index_scripts' ); function et_load_samtemehr_scripts() { $template_dir = get_template_directory_uri(); $theme_version = et_get_theme_version(); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-flexslider', $template_dir . '/js/jquery.flexslider.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ), $theme_version, true ); wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' ); wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true); /* * Loads the main stylesheet. */ wp_enqueue_style( 'samtemehr-style', get_stylesheet_uri(), array(), $theme_version ); } add_action( 'wp_enqueue_scripts', 'et_load_samtemehr_scripts' ); if ( ! function_exists( 'et_get_theme_version' ) ) : function et_get_theme_version() { $theme_info = wp_get_theme(); if ( is_child_theme() ) { $theme_info = wp_get_theme( $theme_info->parent_theme ); } $theme_version = $theme_info->display( 'Version' ); return $theme_version; } endif;
Forum: Fixing WordPress
In reply to: How instal more css file to more page?function samtemehr_index_scripts() { if ( is_page_template( 'index.php' ) ) { wp_enqueue_style( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/css/index.min.css'); wp_enqueue_script( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/js/index.min.js' ); } }
not loaded.
- This reply was modified 6 years, 4 months ago by samtemehr.
Forum: Fixing WordPress
In reply to: help:exclude first post from category@sterndata
Thanks- This reply was modified 6 years, 4 months ago by samtemehr.
Viewing 12 replies - 1 through 12 (of 12 total)