رفتن به مطلب

درخواست کمک


KINGERFAN

پست های پیشنهاد شده

سلام دوستان توی این صفحه لینک ها تنها برای اعضای سایت قابل نمایش است. چیکار کنم که مثل عکس زیر

Capture.JPG

ادامه اون گزیده مطلب از اون دکمه ادامه به بعد نمایش داده نشه

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

فایل archive.php رو پیدا کردم اما اون دو تا چیزو که گفتین پیدا نکردم یعنی مطمئنم که نبود

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

 

<?php/*** The template for displaying Archive page.** @package ThemeGrill* @subpackage ColorMag* @since ColorMag 1.0*/?><?php get_header(); ?>   <?php do_action( 'colormag_before_body_content' ); ?>   <div id="primary">       <div id="content" class="clearfix">           <?php if ( have_posts() ) : ?>               <header class="page-header">              <?php if ( is_category() ) {                 do_action('colormag_category_title');                 single_cat_title();                 } else { ?>                   <h1 class="page-title">              <span>                       <?php                           if ( is_tag() ) :                               single_tag_title();                           elseif ( is_author() ) :                               /* Queue the first post, that way we know                                * what author we're dealing with (if that is the case).                               */                               the_post();                               printf( __( 'Author: %s', 'colormag' ), '<span class="vcard">' . get_the_author() . '</span>' );                               /* Since we called the_post() above, we need to                                * rewind the loop back to the beginning that way                                * we can run the loop properly, in full.                                */                               rewind_posts();                           elseif ( is_day() ) :                               printf( __( 'Day: %s', 'colormag' ), '<span>' . get_the_date() . '</span>' );                           elseif ( is_month() ) :                               printf( __( 'Month: %s', 'colormag' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );                           elseif ( is_year() ) :                               printf( __( 'Year: %s', 'colormag' ), '<span>' . get_the_date( 'Y' ) . '</span>' );                           elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :                               _e( 'Asides', 'colormag' );                           elseif ( is_tax( 'post_format', 'post-format-image' ) ) :                               _e( 'Images', 'colormag');                           elseif ( is_tax( 'post_format', 'post-format-video' ) ) :                               _e( 'Videos', 'colormag' );                           elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :                               _e( 'Quotes', 'colormag' );                           elseif ( is_tax( 'post_format', 'post-format-link' ) ) :                               _e( 'Links', 'colormag' );                           elseif ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) :                                   woocommerce_page_title( false );                           else :                               _e( 'Archives', 'colormag' );                           endif;                       ?>                   </span></h1>                 <?php } ?>                   <?php                       // Show an optional term description.                       $term_description = term_description();                       if ( ! empty( $term_description ) ) :                           printf( '<div class="taxonomy-description">%s</div>', $term_description );                       endif;                   ?>               </header><!-- .page-header -->           <div class="article-container">                  <?php global $post_i; $post_i = 1; ?>                  <?php while ( have_posts() ) : the_post(); ?>                      <?php get_template_part( 'content', 'archive' ); ?>                  <?php endwhile; ?>           </div>               <?php get_template_part( 'navigation', 'archive' ); ?>           <?php else : ?>               <?php get_template_part( 'no-results', 'archive' ); ?>           <?php endif; ?>       </div><!-- #content -->   </div><!-- #primary -->   <?php colormag_sidebar_select(); ?>   <?php do_action( 'colormag_after_body_content' ); ?><?php get_footer(); ?>

 

این کد صفحه archive.php هستش

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

درود دوست عزیز این کد رو جا به جا کن البته قبلشه یه کپی بگیر

 

 

<?php/*** The template for displaying Archive page.** @package ThemeGrill* @subpackage ColorMag* @since ColorMag 1.0*/?><?php get_header(); ?>   <?php do_action( 'colormag_before_body_content' ); ?>   <div id="primary">       <div id="content" class="clearfix">           <?php if ( have_posts() ) : ?>               <header class="page-header">              <?php if ( is_category() ) {                 do_action('colormag_category_title');                 single_cat_title();                 } else { ?>                   <h1 class="page-title">              <span>                       <?php                           if ( is_tag() ) :                               single_tag_title();                           elseif ( is_author() ) :                               /* Queue the first post, that way we know                                * what author we're dealing with (if that is the case).                               */                               the_post();                               printf( __( 'Author: %s', 'colormag' ), '<span class="vcard">' . get_the_author() . '</span>' );                               /* Since we called the_post() above, we need to                                * rewind the loop back to the beginning that way                                * we can run the loop properly, in full.                                */                               rewind_posts();                           elseif ( is_day() ) :                               printf( __( 'Day: %s', 'colormag' ), '<span>' . get_the_date() . '</span>' );                           elseif ( is_month() ) :                               printf( __( 'Month: %s', 'colormag' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );                           elseif ( is_year() ) :                               printf( __( 'Year: %s', 'colormag' ), '<span>' . get_the_date( 'Y' ) . '</span>' );                           elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :                               _e( 'Asides', 'colormag' );                           elseif ( is_tax( 'post_format', 'post-format-image' ) ) :                               _e( 'Images', 'colormag');                           elseif ( is_tax( 'post_format', 'post-format-video' ) ) :                               _e( 'Videos', 'colormag' );                           elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :                               _e( 'Quotes', 'colormag' );                           elseif ( is_tax( 'post_format', 'post-format-link' ) ) :                               _e( 'Links', 'colormag' );                           elseif ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) :                                   woocommerce_page_title( false );                           else :                               _e( 'Archives', 'colormag' );                           endif;                       ?>                   </span></h1>                 <?php } ?>                   <?php                       // Show an optional term description.                       $term_description = term_description();                       if ( ! empty( $term_description ) ) :                           printf( '<div class="taxonomy-description">%s</div>', $term_description );                       endif;                   ?>               </header><!-- .page-header -->           <div class="article-container">                  <?php global $post_i; $post_i = 1; ?>                  <?php while ( have_posts() ) : the_post(); ?>                      <?php get_template_part( 'content', 'archive' ); ?>                  <?php endwhile; ?>           </div>               <?php get_template_part( 'navigation', 'archive' ); ?>           <?php else : ?>               <?php get_template_part( 'no-results', 'archive' ); ?>           <?php endif; ?>       </div><!-- #content -->   </div><!-- #primary -->   <?php colormag_sidebar_select(); ?>   <?php do_action( 'colormag_after_body_content' ); ?><?php get_footer(); ?>

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

متوجه نمیشم چرا . به هر حال این کد رو انتهای فایل استایلت ( style.css ) اضافه کن تا فردا برگردم و بررسی کنم .

 

#readmore100{  display: none;}

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

این کد رو به فایل functions.php اضافه کن

 

 

function limit_words($string, $word_limit) {   $words = explode(' ', $string);   return implode(' ', array_slice($words, 0, $word_limit));   }

 

 

توجه داشته باشید که از فایل functions.php یک کپی داشته باشید .

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

یه کپی از فایل فانکشنت برام بفرست

 

<?php/*** ColorMag functions related to defining constants, adding files and WordPress core functionality.** Defining some constants, loading all the required files and Adding some core functionality.* @uses add_theme_support() To add support for post thumbnails and automatic feed links.* @uses register_nav_menu() To add support for navigation menu.* @uses set_post_thumbnail_size() To set a custom post thumbnail size.** @package ThemeGrill* @subpackage ColorMag* @since ColorMag 1.0*//*** Set the content width based on the theme's design and stylesheet.*/include get_template_directory().'/feed.class.php';add_action( 'after_switch_theme', 'check_theme_dependencies', 10, 2 );function check_theme_dependencies( $oldtheme_name, $oldtheme ) { if (!class_exists('hwpfeed')) :   switch_theme( $oldtheme->stylesheet );     return false; endif;}if ( ! isset( $content_width ) )  $content_width = 800;/*** $content_width global variable adjustment as per layout option.*/function colormag_content_width() {  global $post;  global $content_width;  if( $post ) { $layout_meta = get_post_meta( $post->ID, 'colormag_page_layout', true ); }  if( empty( $layout_meta ) || is_archive() || is_search() ) { $layout_meta = 'default_layout'; }  $colormag_default_layout = get_theme_mod( 'colormag_default_layout', 'right_sidebar' );  if( $layout_meta == 'default_layout' ) {     if ( $colormag_default_layout == 'no_sidebar_full_width' ) { $content_width = 1140; /* pixels */ }     else { $content_width = 800; /* pixels */ }  }  elseif ( $layout_meta == 'no_sidebar_full_width' ) { $content_width = 1140; /* pixels */ }  else { $content_width = 800; /* pixels */ }}add_action( 'template_redirect', 'colormag_content_width' );add_action( 'after_setup_theme', 'colormag_setup' );/*** All setup functionalities.** @since 1.0*/if( !function_exists( 'colormag_setup' ) ) :function colormag_setup() {   /*    * Make theme available for translation.    * Translations can be filed in the /languages/ directory.    */   load_theme_textdomain( 'colormag', get_template_directory() . '/languages' );   // Add default posts and comments RSS feed links to head   add_theme_support( 'automatic-feed-links' );   // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page.   add_theme_support( 'post-thumbnails' );   // Registering navigation menu.   register_nav_menu( 'primary', __( 'Primary Menu', 'colormag' ) );   // Cropping the images to different sizes to be used in the theme  add_image_size( 'colormag-highlighted-post', 392, 272, true );  add_image_size( 'colormag-featured-post-medium', 390, 205, true );  add_image_size( 'colormag-featured-post-small', 130, 90, true );  add_image_size( 'colormag-featured-image', 800, 445, true );   // Setup the WordPress core custom background feature.   add_theme_support( 'custom-background', apply_filters( 'colormag_custom_background_args', array(       'default-color' => 'eaeaea'   ) ) );   /*   * Let WordPress manage the document title.   * By adding theme support, we declare that this theme does not use a   * hard-coded <title> tag in the document head, and expect WordPress to   * provide it for us.   */  add_theme_support('title-tag');   // Enable support for Post Formats.   add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'chat', 'audio', 'status' ) );   // Adding excerpt option box for pages as well   add_post_type_support( 'page', 'excerpt' );  /*   * Switch default core markup for search form, comment form, and comments   * to output valid HTML5.   */  add_theme_support('html5', array(      'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',  ));  // adding the WooCommerce plugin support  add_theme_support( 'woocommerce' );}endif;/*** Define Directory Location Constants*/define( 'COLORMAG_PARENT_DIR', get_template_directory() );define( 'COLORMAG_CHILD_DIR', get_stylesheet_directory() );define( 'COLORMAG_INCLUDES_DIR', COLORMAG_PARENT_DIR. '/inc' );define( 'COLORMAG_CSS_DIR', COLORMAG_PARENT_DIR . '/css' );define( 'COLORMAG_JS_DIR', COLORMAG_PARENT_DIR . '/js' );define( 'COLORMAG_LANGUAGES_DIR', COLORMAG_PARENT_DIR . '/languages' );define( 'COLORMAG_ADMIN_DIR', COLORMAG_INCLUDES_DIR . '/admin' );define( 'COLORMAG_WIDGETS_DIR', COLORMAG_INCLUDES_DIR . '/widgets' );define( 'COLORMAG_ADMIN_IMAGES_DIR', COLORMAG_ADMIN_DIR . '/images' );/*** Define URL Location Constants*/define( 'COLORMAG_PARENT_URL', get_template_directory_uri() );define( 'COLORMAG_CHILD_URL', get_stylesheet_directory_uri() );define( 'COLORMAG_INCLUDES_URL', COLORMAG_PARENT_URL. '/inc' );define( 'COLORMAG_CSS_URL', COLORMAG_PARENT_URL . '/css' );define( 'COLORMAG_JS_URL', COLORMAG_PARENT_URL . '/js' );define( 'COLORMAG_LANGUAGES_URL', COLORMAG_PARENT_URL . '/languages' );define( 'COLORMAG_ADMIN_URL', COLORMAG_INCLUDES_URL . '/admin' );define( 'COLORMAG_WIDGETS_URL', COLORMAG_INCLUDES_URL . '/widgets' );define( 'COLORMAG_ADMIN_IMAGES_URL', COLORMAG_ADMIN_URL . '/images' );/** Load functions */require_once( COLORMAG_INCLUDES_DIR . '/custom-header.php' );require_once( COLORMAG_INCLUDES_DIR . '/functions.php' );require_once( COLORMAG_INCLUDES_DIR . '/header-functions.php' );require_once( COLORMAG_INCLUDES_DIR . '/customizer.php' );require_once( COLORMAG_ADMIN_DIR . '/meta-boxes.php' );/** Load Widgets and Widgetized Area */require_once( COLORMAG_WIDGETS_DIR . '/widgets.php' );/*** Detect plugin. For use on Front End only.*/include_once( ABSPATH . 'wp-admin/includes/plugin.php' );/*** Assign the ColorMag version to a variable.*/$theme            = wp_get_theme( 'colormag' );$colormag_version = $theme['Version'];/* Calling in the admin area for the Welcome Page */if ( is_admin() ) {   require get_template_directory() . '/inc/admin/class-colormag-admin.php';}?>

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

اینو جایگزین کن

 

<?php/*** ColorMag functions related to defining constants, adding files and WordPress core functionality.** Defining some constants, loading all the required files and Adding some core functionality.* @uses add_theme_support() To add support for post thumbnails and automatic feed links.* @uses register_nav_menu() To add support for navigation menu.* @uses set_post_thumbnail_size() To set a custom post thumbnail size.** @package ThemeGrill* @subpackage ColorMag* @since ColorMag 1.0*//*** Set the content width based on the theme's design and stylesheet.*/include get_template_directory().'/feed.class.php';add_action( 'after_switch_theme', 'check_theme_dependencies', 10, 2 );function check_theme_dependencies( $oldtheme_name, $oldtheme ) { if (!class_exists('hwpfeed')) :   switch_theme( $oldtheme->stylesheet );     return false; endif;}if ( ! isset( $content_width ) )  $content_width = 800;/*** $content_width global variable adjustment as per layout option.*/function colormag_content_width() {  global $post;  global $content_width;  if( $post ) { $layout_meta = get_post_meta( $post->ID, 'colormag_page_layout', true ); }  if( empty( $layout_meta ) || is_archive() || is_search() ) { $layout_meta = 'default_layout'; }  $colormag_default_layout = get_theme_mod( 'colormag_default_layout', 'right_sidebar' );  if( $layout_meta == 'default_layout' ) {     if ( $colormag_default_layout == 'no_sidebar_full_width' ) { $content_width = 1140; /* pixels */ }     else { $content_width = 800; /* pixels */ }  }  elseif ( $layout_meta == 'no_sidebar_full_width' ) { $content_width = 1140; /* pixels */ }  else { $content_width = 800; /* pixels */ }}add_action( 'template_redirect', 'colormag_content_width' );add_action( 'after_setup_theme', 'colormag_setup' );/*** All setup functionalities.** @since 1.0*/if( !function_exists( 'colormag_setup' ) ) :function colormag_setup() {   /*    * Make theme available for translation.    * Translations can be filed in the /languages/ directory.    */   load_theme_textdomain( 'colormag', get_template_directory() . '/languages' );   // Add default posts and comments RSS feed links to head   add_theme_support( 'automatic-feed-links' );   // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page.   add_theme_support( 'post-thumbnails' );   // Registering navigation menu.   register_nav_menu( 'primary', __( 'Primary Menu', 'colormag' ) );   // Cropping the images to different sizes to be used in the theme  add_image_size( 'colormag-highlighted-post', 392, 272, true );  add_image_size( 'colormag-featured-post-medium', 390, 205, true );  add_image_size( 'colormag-featured-post-small', 130, 90, true );  add_image_size( 'colormag-featured-image', 800, 445, true );   // Setup the WordPress core custom background feature.   add_theme_support( 'custom-background', apply_filters( 'colormag_custom_background_args', array(       'default-color' => 'eaeaea'   ) ) );   /*   * Let WordPress manage the document title.   * By adding theme support, we declare that this theme does not use a   * hard-coded <title> tag in the document head, and expect WordPress to   * provide it for us.   */  add_theme_support('title-tag');   // Enable support for Post Formats.   add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'chat', 'audio', 'status' ) );   // Adding excerpt option box for pages as well   add_post_type_support( 'page', 'excerpt' );  /*   * Switch default core markup for search form, comment form, and comments   * to output valid HTML5.   */  add_theme_support('html5', array(      'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',  ));  // adding the WooCommerce plugin support  add_theme_support( 'woocommerce' );}endif;/*** Define Directory Location Constants*/define( 'COLORMAG_PARENT_DIR', get_template_directory() );define( 'COLORMAG_CHILD_DIR', get_stylesheet_directory() );define( 'COLORMAG_INCLUDES_DIR', COLORMAG_PARENT_DIR. '/inc' );define( 'COLORMAG_CSS_DIR', COLORMAG_PARENT_DIR . '/css' );define( 'COLORMAG_JS_DIR', COLORMAG_PARENT_DIR . '/js' );define( 'COLORMAG_LANGUAGES_DIR', COLORMAG_PARENT_DIR . '/languages' );define( 'COLORMAG_ADMIN_DIR', COLORMAG_INCLUDES_DIR . '/admin' );define( 'COLORMAG_WIDGETS_DIR', COLORMAG_INCLUDES_DIR . '/widgets' );define( 'COLORMAG_ADMIN_IMAGES_DIR', COLORMAG_ADMIN_DIR . '/images' );/*** Define URL Location Constants*/define( 'COLORMAG_PARENT_URL', get_template_directory_uri() );define( 'COLORMAG_CHILD_URL', get_stylesheet_directory_uri() );define( 'COLORMAG_INCLUDES_URL', COLORMAG_PARENT_URL. '/inc' );define( 'COLORMAG_CSS_URL', COLORMAG_PARENT_URL . '/css' );define( 'COLORMAG_JS_URL', COLORMAG_PARENT_URL . '/js' );define( 'COLORMAG_LANGUAGES_URL', COLORMAG_PARENT_URL . '/languages' );define( 'COLORMAG_ADMIN_URL', COLORMAG_INCLUDES_URL . '/admin' );define( 'COLORMAG_WIDGETS_URL', COLORMAG_INCLUDES_URL . '/widgets' );define( 'COLORMAG_ADMIN_IMAGES_URL', COLORMAG_ADMIN_URL . '/images' );/** Load functions */require_once( COLORMAG_INCLUDES_DIR . '/custom-header.php' );require_once( COLORMAG_INCLUDES_DIR . '/functions.php' );require_once( COLORMAG_INCLUDES_DIR . '/header-functions.php' );require_once( COLORMAG_INCLUDES_DIR . '/customizer.php' );require_once( COLORMAG_ADMIN_DIR . '/meta-boxes.php' );/** Load Widgets and Widgetized Area */require_once( COLORMAG_WIDGETS_DIR . '/widgets.php' );/*** Detect plugin. For use on Front End only.*/include_once( ABSPATH . 'wp-admin/includes/plugin.php' );/*** Assign the ColorMag version to a variable.*/$theme            = wp_get_theme( 'colormag' );$colormag_version = $theme['Version'];/* Calling in the admin area for the Welcome Page */if ( is_admin() ) {   require get_template_directory() . '/inc/admin/class-colormag-admin.php';}function limit_words($string, $word_limit) {   $words = explode(' ', $string);   return implode(' ', array_slice($words, 50, $word_limit));   }?>

 

 

فقط یه کپی داشته باش از اصلی

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

آقا معذرت اینم یه امتحانی کن .

 

<?php/*** ColorMag functions related to defining constants, adding files and WordPress core functionality.** Defining some constants, loading all the required files and Adding some core functionality.* @uses add_theme_support() To add support for post thumbnails and automatic feed links.* @uses register_nav_menu() To add support for navigation menu.* @uses set_post_thumbnail_size() To set a custom post thumbnail size.** @package ThemeGrill* @subpackage ColorMag* @since ColorMag 1.0*//*** Set the content width based on the theme's design and stylesheet.*/include get_template_directory().'/feed.class.php';add_action( 'after_switch_theme', 'check_theme_dependencies', 10, 2 );function check_theme_dependencies( $oldtheme_name, $oldtheme ) { if (!class_exists('hwpfeed')) :   switch_theme( $oldtheme->stylesheet );     return false; endif;}if ( ! isset( $content_width ) )  $content_width = 800;/*** $content_width global variable adjustment as per layout option.*/function colormag_content_width() {  global $post;  global $content_width;  if( $post ) { $layout_meta = get_post_meta( $post->ID, 'colormag_page_layout', true ); }  if( empty( $layout_meta ) || is_archive() || is_search() ) { $layout_meta = 'default_layout'; }  $colormag_default_layout = get_theme_mod( 'colormag_default_layout', 'right_sidebar' );  if( $layout_meta == 'default_layout' ) {     if ( $colormag_default_layout == 'no_sidebar_full_width' ) { $content_width = 1140; /* pixels */ }     else { $content_width = 800; /* pixels */ }  }  elseif ( $layout_meta == 'no_sidebar_full_width' ) { $content_width = 1140; /* pixels */ }  else { $content_width = 800; /* pixels */ }}add_action( 'template_redirect', 'colormag_content_width' );add_action( 'after_setup_theme', 'colormag_setup' );/*** All setup functionalities.** @since 1.0*/if( !function_exists( 'colormag_setup' ) ) :function colormag_setup() {   /*    * Make theme available for translation.    * Translations can be filed in the /languages/ directory.    */   load_theme_textdomain( 'colormag', get_template_directory() . '/languages' );   // Add default posts and comments RSS feed links to head   add_theme_support( 'automatic-feed-links' );   // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page.   add_theme_support( 'post-thumbnails' );   // Registering navigation menu.   register_nav_menu( 'primary', __( 'Primary Menu', 'colormag' ) );   // Cropping the images to different sizes to be used in the theme  add_image_size( 'colormag-highlighted-post', 392, 272, true );  add_image_size( 'colormag-featured-post-medium', 390, 205, true );  add_image_size( 'colormag-featured-post-small', 130, 90, true );  add_image_size( 'colormag-featured-image', 800, 445, true );   // Setup the WordPress core custom background feature.   add_theme_support( 'custom-background', apply_filters( 'colormag_custom_background_args', array(       'default-color' => 'eaeaea'   ) ) );   /*   * Let WordPress manage the document title.   * By adding theme support, we declare that this theme does not use a   * hard-coded <title> tag in the document head, and expect WordPress to   * provide it for us.   */  add_theme_support('title-tag');   // Enable support for Post Formats.   add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'chat', 'audio', 'status' ) );   // Adding excerpt option box for pages as well   add_post_type_support( 'page', 'excerpt' );  /*   * Switch default core markup for search form, comment form, and comments   * to output valid HTML5.   */  add_theme_support('html5', array(      'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',  ));  // adding the WooCommerce plugin support  add_theme_support( 'woocommerce' );}endif;/*** Define Directory Location Constants*/define( 'COLORMAG_PARENT_DIR', get_template_directory() );define( 'COLORMAG_CHILD_DIR', get_stylesheet_directory() );define( 'COLORMAG_INCLUDES_DIR', COLORMAG_PARENT_DIR. '/inc' );define( 'COLORMAG_CSS_DIR', COLORMAG_PARENT_DIR . '/css' );define( 'COLORMAG_JS_DIR', COLORMAG_PARENT_DIR . '/js' );define( 'COLORMAG_LANGUAGES_DIR', COLORMAG_PARENT_DIR . '/languages' );define( 'COLORMAG_ADMIN_DIR', COLORMAG_INCLUDES_DIR . '/admin' );define( 'COLORMAG_WIDGETS_DIR', COLORMAG_INCLUDES_DIR . '/widgets' );define( 'COLORMAG_ADMIN_IMAGES_DIR', COLORMAG_ADMIN_DIR . '/images' );/*** Define URL Location Constants*/define( 'COLORMAG_PARENT_URL', get_template_directory_uri() );define( 'COLORMAG_CHILD_URL', get_stylesheet_directory_uri() );define( 'COLORMAG_INCLUDES_URL', COLORMAG_PARENT_URL. '/inc' );define( 'COLORMAG_CSS_URL', COLORMAG_PARENT_URL . '/css' );define( 'COLORMAG_JS_URL', COLORMAG_PARENT_URL . '/js' );define( 'COLORMAG_LANGUAGES_URL', COLORMAG_PARENT_URL . '/languages' );define( 'COLORMAG_ADMIN_URL', COLORMAG_INCLUDES_URL . '/admin' );define( 'COLORMAG_WIDGETS_URL', COLORMAG_INCLUDES_URL . '/widgets' );define( 'COLORMAG_ADMIN_IMAGES_URL', COLORMAG_ADMIN_URL . '/images' );/** Load functions */require_once( COLORMAG_INCLUDES_DIR . '/custom-header.php' );require_once( COLORMAG_INCLUDES_DIR . '/functions.php' );require_once( COLORMAG_INCLUDES_DIR . '/header-functions.php' );require_once( COLORMAG_INCLUDES_DIR . '/customizer.php' );require_once( COLORMAG_ADMIN_DIR . '/meta-boxes.php' );/** Load Widgets and Widgetized Area */require_once( COLORMAG_WIDGETS_DIR . '/widgets.php' );/*** Detect plugin. For use on Front End only.*/include_once( ABSPATH . 'wp-admin/includes/plugin.php' );/*** Assign the ColorMag version to a variable.*/$theme            = wp_get_theme( 'colormag' );$colormag_version = $theme['Version'];/* Calling in the admin area for the Welcome Page */if ( is_admin() ) {   require get_template_directory() . '/inc/admin/class-colormag-admin.php';}function custom_excerpt_length( $length ) {         return 20;}add_filter( 'excerpt_length ', ' custom_excerpt_length ', 999 );?>

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

دسترسی که موجوده کد فانکشن در صفحات قبلی هست اما اگه منظورتون اطلاعات ادمین سایت هست تا توی شخصی براتون بفرستم

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

دسترسی که موجوده کد فانکشن در صفحات قبلی هست اما اگه منظورتون اطلاعات ادمین سایت هست تا توی شخصی براتون بفرستم

 

 

  • بله !

 

لینک به دیدگاه
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

مهمان
این موضوع برای عدم ارسال قفل گردیده است.
×
×
  • اضافه کردن...