arashbbb 1 ارسال شده در اسفند 92 گزارش بازنشر ارسال شده در اسفند 92 دوستان چطور میتونم سایز تصویر شاخص تو صفحه نخست سایت رو تغییر بدم؟و عکس "نوشته های تازه" که در ستون اول سایت هست رو چطوری سایزشو بزرگ کنم؟به این عکسا نگاه کنین:http://zurl.ir/269653http://zurl.ir/382473 نقل قول لینک به ارسال
SM-Mahdavi 5427 ارسال شده در اسفند 92 گزارش بازنشر ارسال شده در اسفند 92 سایز تصاویر رو از داخل فایل functions.php باید تغییر بدین. دقت کنید متناسب با باکسی که عکس داخلشه تغییر اندازه بدین. 3 نقل قول لینک به ارسال
yoonesgholamy 211 ارسال شده در اسفند 92 گزارش بازنشر ارسال شده در اسفند 92 <?php// قابلیت تصویر شاخصadd_theme_support( 'post-thumbnails' );set_post_thumbnail_size( 50, 50, true ); // default post thumbnails?>با این کد که باید توی function.php بزارید می تونید به راحتی سایز عکس شاخص رو تعیین کنید می توید به جای 50 طول و عرض دلخواه خودتون رو قرار بدید نقل قول لینک به ارسال
arashbbb 1 ارسال شده در اسفند 92 مالک گزارش بازنشر ارسال شده در اسفند 92 دوستان من نتونستم, فایل functions.php رو میزارم یه نگاه بکنید ببینید میشه یا نه؟<?php require_once TEMPLATEPATH . '/lib/Themater.php'; $theme = new Themater(); $theme->theme_name = 'Sparks'; $theme->options['includes'] = array('featuredposts', 'social-icons'); // Defaullt theme options if(is_admin()) { $theme->admin_options['Ads']['content']['header_banner']['content']['value'] = '<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b2.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>'; } $theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '480px. x 260px.', 'speed' => '300'); $theme->options['widgets_options']['posts'] = array('display_content' => false, 'display_read_more' => false); $theme->options['menus']['menu-secondary']['effect'] = 'slide'; $theme->admin_option('Support', 'Support', 'support', 'raw', '<ul><li><strong>Theme Author:</strong> <a href="http://fthemes.com" target="_blank">FThemes.com</a></li> <li><strong>Theme Homepage:</strong> <a href="http://fthemes.com/sparks-free-wordpress-theme" target="_blank">http://fthemes.com/sparks-free-wordpress-theme/</a></li> <li><strong>Theme Help/Documentation:</strong> <a href="http://fthemes.com/help-documentation/" target="_blank">http://fthemes.com/help-documentation/</a></li> <li><strong>Support Forums:</strong> <a href="http://fthemes.com/forum/" target="_blank">http://fthemes.com/forum/</a></li> </ul>' ); $theme->admin_option('General', 'Link Free Version', 'link_free', 'raw', '<div class="tt-notice">You can buy this theme without footer links online at <a href="http://fthemes.com/buy/" target="_blank">http://fthemes.com/buy/</a></div>', array('priority' => '1') ); $theme->load(); register_sidebar(array( 'name' => __('Secondary Sidebar', 'themater'), 'id' => 'sidebar_secondary', 'description' => __('The secondary sidebar widget area', 'themater'), 'before_widget' => '<ul class="widget-wrap"><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li></ul>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>' )); // Secondary sidebar default widgets $theme->add_hook('sidebar_secondary', 'sidebar_secondary_default_widgets'); function sidebar_secondary_default_widgets () { global $theme; $theme->display_widget('Search'); $theme->display_widget('Tabs'); $theme->display_widget('Calendar', array('title' => 'Calendar')); $theme->display_widget('Tag_Cloud'); $theme->display_widget('Tweets'); } function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'تمامی حقوق برای این وبسایت محفوظ است.'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();?> نقل قول لینک به ارسال
Parsa 23463 ارسال شده در اسفند 92 گزارش بازنشر ارسال شده در اسفند 92 http://forum.wp-parsi.com/tutorials/article/150-%D8%AA%D8%B5%D8%A7%D9%88%DB%8C%D8%B1-%D8%B4%D8%A7%D8%AE%D8%B5-%D8%AF%D8%B1-%D9%88%D8%B1%D8%AF%D9%BE%D8%B1%D8%B3-%DB%8C%DA%A9%D8%A8%D8%A7%D8%B1-%D8%A8%D8%B1%D8%A7%DB%8C-%D9%87%D9%85%DB%8C%D8%B4%D9%87/ 1 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .