رفتن به مطلب

3001ir

عضو سایت
  • تعداد ارسال‌ها

    75
  • تاریخ عضویت

  • آخرین بازدید

نوشته‌ها ارسال شده توسط 3001ir

  1. درسته قالب تو رو الان نصب کردم و دارمش علتش هم اینه که قالب تو با یک فایل (loop.php ) هم مطالب صفحه اول و ادامه مطلب رو با هم فراخوانی میکنه کار یکم سخته

    ولی این کد رو تو style بزار یکم درست میشه


    .more-link {
    text-align: center;
    padding:5px;
    font-size: 11px;
    margin: 10px 0px;
    border-radius:10px 0px 10px 0px;
    border:2px solid #0560a6;

    }

    اگه خوب نبود پاک کن

    تا بعد

    • امتیاز 2
  2. فکر کنم از قالب WP98 iTheme2 استفاده میکنی اگه اینطوره این کارها رو انجام بده

    1 . در صفحه ویرایشگر قالب فایل loop.php رو پیدا کن بعد این کد رو پیدا و پاک کن


    <?php else: ?>
    <?php the_content(__((themify_check('setting-default_more_text')) ? themify_get('setting-default_more_text') : 'بیشتر →','themify')); ?>
    <?php endif; ?>

    به جاش اینو بزار


    <?php else: ?>
    <?php the_content(''); ?>

    <?php endif; ?>
    <div class="post-more-link"><a href="<?php the_permalink() ?>" rel="bookmark">ادامه مطلب</a></div>

    2. حالا فایل style رو باز کن و در پایین صفحه این کد رو بزار


    .post-more-link {

    text-align: center;
    color: #ffffff;
    padding:5px;
    font-size: 11px;
    margin: 3px 0px 12px 6px;

    border-radius:10px 0px 10px 0px;
    width:60px;
    border:2px solid #0560a6;

    }
    .post-more-link a:hover {
    text-decoration: underline;
    color:#ff0000;
    padding-right:5px;
    }

    اگه مشکلی بود خبر بده

    • امتیاز 2
  3. قالب فعلیم color palette

    محتوای functions.php


    <?php
    /**
    * colorpalette functions and definitions
    *
    * @package colorpalette
    * @since colorpalette 1.0
    */
    /**
    * Set the content width based on the theme's design and stylesheet.
    *
    * @since colorpalette 1.0
    */
    if ( ! isset( $content_width ) )
    $content_width = 608; /* pixels */
    if ( ! function_exists( 'colorpalette_setup' ) ) :
    /**
    * Sets up theme defaults and registers support for various WordPress features.
    *
    * Note that this function is hooked into the after_setup_theme hook, which runs
    * before the init hook. The init hook is too late for some features, such as indicating
    * support post thumbnails.
    *
    * @since colorpalette 1.0
    */
    function colorpalette_setup() {
    /**
    * Custom template tags for this theme.
    */
    require( get_template_directory() . '/inc/template-tags.php' );
    /**
    * Custom functions that act independently of the theme templates
    */
    require( get_template_directory() . '/inc/extras.php' );


    /**
    * Load up our theme options page and related code.
    */
    require( get_template_directory() . '/inc/theme-options.php' );

    /**
    * Make theme available for translation
    * Translations can be filed in the /languages/ directory
    * If you're building a theme based on colorpalette, use a find and replace
    * to change 'colorpalette' to the name of your theme in all the template files
    */
    load_theme_textdomain( 'colorpalette', get_template_directory() . '/languages' );
    /**
    * Add default posts and comments RSS feed links to head
    */
    add_theme_support( 'automatic-feed-links' );
    /**
    * Enable support for Post Thumbnails
    */
    add_theme_support( 'post-thumbnails' );
    /**
    * This theme uses wp_nav_menu() in one location.
    */
    register_nav_menus( array(
    'primary' => __( 'Primary Menu', 'colorpalette' ),
    ) );
    /**
    * Add support for the Aside Post Formats
    */
    add_theme_support( 'post-formats', array( 'aside', 'quote' ) );

    /**
    * Add styling for editor for both LTR and RTL
    */
    add_editor_style();
    }
    endif; // colorpalette_setup
    add_action( 'after_setup_theme', 'colorpalette_setup' );
    /**
    * Register widgetized area and update sidebar with default widgets
    *
    * @since colorpalette 1.0
    */
    function colorpalette_widgets_init() {
    register_sidebar( array(
    'name' => __( 'Sidebar', 'colorpalette' ),
    'id' => 'sidebar-1',
    'before_widget' => '<aside id="%1$s" class="widget %2$s"><div class="widget-wrap">',
    'after_widget' => '</div></aside>',
    'before_title' => '<h1 class="widget-title">',
    'after_title' => '</h1>',
    ) );
    register_sidebar( array(
    'name' => __( 'First Footer Area', 'colorpalette' ),
    'id' => 'footer-left',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ) );
    register_sidebar( array(
    'name' => __( 'Middle Footer Area', 'colorpalette' ),
    'id' => 'footer-center',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ) );
    register_sidebar( array(
    'name' => __( 'Last Footer Area', 'colorpalette' ),
    'id' => 'footer-right',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ) );
    }
    add_action( 'widgets_init', 'colorpalette_widgets_init' );
    /**
    * Enqueue scripts and styles
    */
    function colorpalette_scripts() {
    wp_enqueue_style( 'style', get_stylesheet_uri() );

    wp_enqueue_style('googleFonts', 'http://fonts.googleapis.com/css?family=Kameron|Bad+Script');

    wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), '20120206', true );
    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    wp_enqueue_script( 'comment-reply' );
    }
    if ( is_singular() && wp_attachment_is_image() ) {
    wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
    }
    }
    add_action( 'wp_enqueue_scripts', 'colorpalette_scripts' );

  4. تو فایل index.php این کد رو بزار


    <div class="more"><a href="<?php the_permalink() ?>" rel="bookmark" id="more">ادامه مطلب</a></div>

    بعد تو فایل style.css این کد رو بزار


    .more{
    border:1px solid #CCC;
    border-radius:5px;
    height:20px;
    width:70px;
    background-color:#fff;
    padding-right:10px;
    }
    .more:hover{
    background-color:#3cb3f1;
    color:#fff;
    border:1px #000 solid;
    -moz-box-shadow: 0 0 2px 2px #999;
    -webkit-box-shadow: 0 0 2px 2px #999;
    box-shadow: 0 0 2px 2px #ccc;
    }

    البته از هرجاش که خوشت نیومد میتونی عوض کنی

    • امتیاز 3
  5. برای نمایش مطالب مرتبط من از افزونه Related Posts via Categories استفاده میکنم

    این افزونه مطالب رو اینجوری نمایش میده

    پست 1 (2)

    پست 2 (2)

    پست 3 (1)

    post 4 (1)

    حالا اگه امکان داشته باشه میخوام این نوشته داخل پارانتز حذف بشه چون وقتی عنوان مطلب انگلیسی میشه قاطی میکنه

  6. مشکلی واسه قالب پیش نمیاد فقط اسلایدر یا لود نمیشه یا اصلا بالا نمیاد ولی همون اسلایدر ها تو بعضی از قالبها بدون مشکل هستن

    نمیدونم چرا اون قالبی که به درد من میخوره این مشکلات رو داره و اون قالبی که به دردم نمیخوره هیچ مشکلی نداره

  7. فکر کنم ویندوزت xp هست چون اکسپلوررت پایینه سعی کن از نسخه بالاتر استفاده کنی . این روزا همه از نسخه های بالاتر استفاده میکنن . واسه نسخه های قدیمی تر هم بزار اساتید کمک کنن چون من مشکلات قالبم رو با Inspect موزیلا برطرف میکنم تا حالا هم موفق بودم و یکم برنامه نویسی قالب یادگرفتم

    موفق باشی

    • امتیاز 2
  8. فایل استایلت تو فایر فاکس لود نمیشه ولی تو اکسپلرر 10 و 9 و 8 مشکلی نیست فقط تو نسخه های قدیمی مشکل هست

    واسه اونا هم این کد رو تو هدر بزار


    <!--[if IE 7]>

    <p style="text-align:center ; width:200px; border:1px #9000000 solid; padding:1px;background:#bdeaff; font-color: #0560a6; font-family:tahoma; font-size:11px; ">
    مرورگر پیشنهادی : <a target="_blank" href="http://www.mozilla.com/fa/firefox/">موزیلا فایرفاکس</a></p>

    <![endif]-->

    اکسپلورر چند استفاده میکنی

    • امتیاز 2
  9. پس این بخش از کجا اومده


    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    <p>The requested URL /soft/jquery-1.6.3.min.js was not found on this server.</p>
    <hr>
    <address>Apache/2.2.23 (CentOS) Server at www.shigg.com Port 80</address>
    </body></html>

    تو قالب پیدا کن پاکش کن

×
×
  • اضافه کردن...