|
|
||||||
![]() |
| ![]() |
![]() |
|
|
LinkBack | أدوات الموضوع | انواع عرض الموضوع |
|
#1
|
|||
|
|||
|
السلام عليكم و رحمة الله و بركـاته .. ![]() كنت أقوم بتركيب أحد المدونـات , و كانت محتويات السايد بار الأصليّة ممتازة , لكن , عندما بدأت بإضافة مربعات القوائم الجانبيّـة اختفت ! .. ![]() هنـا قبل إضـافة مربّع قائمة جانبيّـة .. ( جديد الريشـة ) ![]() لكن بعد ما أضفت المربّــع .. حذفت القوائم الأصليّة .. ![]() فما الحل ؟ الحل هنـا .. : ) نفتح ملف السـايد بار .. نجد فيه هذا الكود ( الجملة الشرطيّـة باللون الأحمر ) كود:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<!-- Author -->
<li class="widget"><h2><?php _e('صاحب المدونـة'); ?></h2>
<ul>
<li>
<!-- Change image location below -->
<img src="<?php bloginfo('template_url'); ?>/images/budha.jpg" alt="Photo Example" />
تعريف بسيط : ) ..
</li>
</ul>
</li>
<?php endif; //function_exists('dynamic_sidebar') ?>
<li class="widget"><h2><?php _e('إدارة المدونـة'); ?></h2>
<ul>
( يمكنك نقل السطرين إلى أي مكان تريد في السايد بار ) .. و هنـا بعد أن تم التعديل ![]() ![]() تحيّـاتي , و عذراً على الأسلوب السريع في شرحي ![]() ![]()
__________________
التعديل الأخير تم بواسطة أبــو عــابد ; 03-13-2009 الساعة 09:32 PM. سبب آخر: خطأ نحوي .. عذراً عربيّتنا :/ |
| هؤولاء الاعضاء يشكرونك يا أبــو عــابد على هذه المشاركة: | ||
الجرح الخالد (03-26-2009), الحــتــف (03-13-2009), الإعصار الأحمر (03-14-2009), احمد حمودة (03-13-2009), رشيد بيدوسي (03-13-2009), سعود الهليل (12-06-2009), سنان (03-14-2009), Shahda.com (08-09-2010), فارس نت (03-13-2009), وكالة 18 نوفمبر (02-17-2010) | ||
|
#2
|
|||
|
|||
__________________
أسألك الهداية يا رب . |
|
#3
|
|||
|
|||
|
__________________
|
|
#5
|
|||
|
|||
|
جزيت خيراً اخي ابوعابد ؛
رائع دائماً ؛
|
|
#6
|
|||
|
|||
|
__________________
|
|
#7
|
|||
|
|||
|
بارك الله فيك أخي أبو عابد
إذا كنتن تقصد ملف الـ sidebar.php اللي في مجلد الـ wp-admin فأنا لم أجد الكود السابق هذا اللي وجدته في الملف : [HTML] <?php /** * Quick way to create a WordPress Post. * * @package WordPress * @subpackage Administration */ /** * @var string * @name $mode */ $mode = 'sidebar'; /** WordPress Administration Bootstrap */ require_once('admin.php'); if ( ! current_user_can('edit_posts') ) wp_die(__('Cheatin’ uh?')); $post = get_default_post_to_edit(); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ****** http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" /> <title><?php bloginfo('name') ?> › <?php _e('Sidebar'); ?></title> <style type="text/css" media="screen"> body { font-size: 0.9em; margin: 0; padding: 0; } form { padding: 1%; } .tags-wrap p { font-size: 0.75em; margin-top: 0.4em; } .button-highlighted, #wphead, label { font-weight: bold; } #post-title, #tags-input, #content { width: 99%; padding: 2px; } #wphead { font-size: 1.4em; background-color: #E4F2FD; color: #555555; padding: 0.2em 1%; } #wphead p { margin: 3px; } .button { font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; padding: 3px 5px; margin-right: 5px; font-size: 0.75em; line-height: 1.5em; border: 1px solid #80b5d0; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; cursor: pointer; background-color: #e5e5e5; color: #246; } .button:hover { border-color: #535353; } .updated { background-color: #FFFBCC; border: 1px solid #E6DB55; margin-bottom: 1em; padding: 0 0.6em; } .updated p { margin: 0.6em; } </style> </head> <body id="sidebar"> <div id="wphead"><p><?php bloginfo('name') ?> › <?php _e('Sidebar'); ?></p></div> <form name="post" action="post.php" method="post"> <div> <input type="hidden" name="action" value="post" /> <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" /> <input type="hidden" name="mode" value="sidebar" /> <input type="hidden" name="ping_status" value="<?php echo $post->ping_status; ?>" /> <input type="hidden" name="comment_status" value="<?php echo $post->comment_status; ?>" /> <?php wp_nonce_field('add-post'); if ( 'b' == $_GET['a'] ) echo '<div class="updated"><p>' . __('Post published.') . '</p></div>'; elseif ( 'c' == $_GET['a'] ) echo '<div class="updated"><p>' . __('Post saved.') . '</p></div>'; ?> <p> <label for="post-title"><?php _e('Title:'); ?></label> <input type="text" name="post_title" id="post-title" size="20" tabindex="1" autocomplete="off" value="" /> </p> <p> <label for="content"><?php _e('Post:'); ?></label> <textarea rows="8" cols="12" name="content" id="content" style="height:10em;line-height:1.4em;" tabindex="2"></textarea> </p> <div class="tags-wrap"> <label for="tags-input"><?php _e('Tags:') ?></label> <input type="text" name="tags_input" id="tags-input" tabindex="3" value="" /> <p><?php _e('Separate tags with commas'); ?></p> </div> <p> <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" accesskey="s" class="button" value="<?php _e('Save as Draft'); ?>" /> <?php if ( current_user_can('publish_posts') ) : ?> <input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _e('Publish') ?>" class="button button-highlighted" /> <?php endif; ?> </p> </div> </form> </body> </html> [/HTML] و لأضعك في الصورة أكثر لمشكلتي انظر هذا الموضوع [ مشكله ] عند تغيير القوائم الجانبية شاكر لك أخي
__________________
|
|
#8
|
|||
|
|||
|
المقصود ملف sidebar.php الخاص بالقالب المستعمل في المدونة وليس الموجود في wp-admin
القالب موجود ضمن مجلد /public_html/wp-content/themes/
__________________
(1) موقعي التعريفي هنا.
(2) يرجى التقيّد بضوابط الدستور منعاً لغلق أو حذف المواضيع المخالفة. (3) يرجى وضع رابط مدونتك في توقيعك فهذا يساعدنا على تقديم دعم فني سريع. (4) كن ممّن يأخذ فيعطي ولا تكن ممّن يأخذ فيختفي. -------------------------------------------------------- سبحان الله، الحمد لله، لا إله إلا الله، الله أكبر |
|
#9
|
|||
|
|||
|
أشكرك أخي رشيد
لقيت الملف بس كان مختلف شوي عن اللي فوق هذا هو : [HTML] <div class="main_left"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:100px; height:267px"/> <br /><br /><br /><br /><br /><br /> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(__('Left sidebar')) ) : else : ?> <div class="widget_style" id="links_with_style"> <div id="rss"><center> <a href="<?php bloginfo('rss_url'); ?>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Subscribe to <?php bloginfo('name'); ?>" /></a></center> </div> </div> <div class="widget_style" id="categories"> <div class="cats_head_bg"> <h2 class="h3"><?php _e('Categories','theme110'); ?></h2> </div> <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hiera rchical=0'); ?> </ul> </div> <div class="widget_style" id="archives"> <div class="cats_head_bg"> <h2 class="h3"><?php _e('Archives','theme110'); ?></h2> </div> <ul> <?php get_archives('monthly','10','custom','<li>','</li>'); ?> </ul> </div> <div class="widget_style" id="links_with_style"> <div class="cats_head_bg"> <h2 class="h3">Blogroll</h2> </div> <ul> <?php wp_list_bookmarks('categorize=0&title_li='); ?> </ul> </div> <div class="widget_style" id="meta"> <div class="cats_head_bg"> <h2 class="h3"><?php _e('Meta','theme110'); ?></h2> </div> <ul> <?php wp_register('<li>', '</li>'); ?> <li><?php wp_loginout(); ?></li> <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li> <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> <?php wp_meta(); ?> </ul></div> <?php endif; ?> <br /> </div> <div class="left_2"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:22px; height:1px"/></div> [/HTML] وعدل عليه و أصبح كذا [HTML] <div class="main_left"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:100px; height:267px"/> <br /><br /><br /><br /><br /><br /> <div class="widget_style" id="links_with_style"> <div id="rss"><center> <a href="<?php bloginfo('rss_url'); ?>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Subscribe to <?php bloginfo('name'); ?>" /></a></center> </div> </div> <div class="widget_style" id="categories"> <div class="cats_head_bg"> <h2 class="h3"><?php _e('Categories','theme110'); ?></h2> </div> <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hiera rchical=0'); ?> </ul> </div> <div class="widget_style" id="archives"> <div class="cats_head_bg"> <h2 class="h3"><?php _e('Archives','theme110'); ?></h2> </div> <ul> <?php get_archives('monthly','10','custom','<li>','</li>'); ?> </ul> </div> <div class="widget_style" id="links_with_style"> <div class="cats_head_bg"> <h2 class="h3">Blogroll</h2> </div> <ul> <?php wp_list_bookmarks('categorize=0&title_li='); ?> </ul> </div> <div class="widget_style" id="meta"> <div class="cats_head_bg"> <h2 class="h3"><?php _e('Meta','theme110'); ?></h2> </div> <ul> <?php wp_register('<li>', '</li>'); ?> <li><?php wp_loginout(); ?></li> <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li> <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> <?php wp_meta(); ?> </ul></div> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <?php endif; ?> <br /> </div> <div class="left_2"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:22px; height:1px"/></div> [/HTML] والحمد لله الآن أستطيع الإضافه على القوائم الأصليه و لكن المشكله هي أنني لا أستطيع تعديل عناوين القوائم الأصليه أو تغيير ترتيبها مع القوائم الجديدة ! أرجو أن أجد لديكم الحل ,, والعذر العذر على الإزعـــــاج ,,,,
__________________
|
|
#10
|
|||
|
|||
|
بـارك الله فيكما : ) .. رشيد و سموّي بديني ..~ أخوي سموّي .. شوف اللي بالأحمر .. هذي العناوين ..كود:
<div class="main_left"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:100px; height:267px"/>
<br /><br /><br /><br /><br /><br />
<div class="widget_style" id="links_with_style">
<div id="rss"><center>
<a href="<?php bloginfo('rss_url'); ?>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Subscribe to <?php bloginfo('name'); ?>" /></a></center>
</div>
</div>
<div class="widget_style" id="categories">
<div class="cats_head_bg">
<h2 class="h3"><?php _e('Categories','theme110'); ?></h2>
</div>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</div>
<div class="widget_style" id="archives">
<div class="cats_head_bg">
<h2 class="h3"><?php _e('Archives','theme110'); ?></h2>
</div>
<ul>
<?php get_archives('monthly','10','custom','<li>','</li>'); ?>
</ul>
</div>
<div class="widget_style" id="links_with_style">
<div class="cats_head_bg">
<h2 class="h3">Blogroll</h2>
</div>
<ul>
<?php wp_list_bookmarks('categorize=0&title_li='); ?>
</ul>
</div>
<div class="widget_style" id="meta">
<div class="cats_head_bg">
<h2 class="h3"><?php _e('Meta','theme110'); ?></h2>
</div>
<ul>
<?php wp_register('<li>', '</li>'); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul></div>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<?php endif; ?> <br />
</div>
<div class="left_2"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:22px; height:1px"/></div>
العناصر الأساسيّـة لا تظهر في قائمة " المربعات الجانبيّة " في لوحة التحكم ,, إنما يتم التعديل عليها عبر نقلها يدويّـا في ملف الـsidebar.php ![]()
__________________
|
![]() |
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| أدوات الموضوع | |
| انواع عرض الموضوع | |
|
|
المواضيع المتشابهه
|
||||
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
| تفضل طريقة إضافة وتحديد أماكن مربعات القوائم الجانبية | عبدالملك الثاري | قوالب ووردبريس - عام | 12 | 05-11-2009 03:09 PM |
| عند اضافة ( مربعات القائمة الجانبية ) تختفي القوائم الاخرى ! | متفائلون | الدعم الفني المتقدّم | 7 | 10-24-2008 10:00 AM |
| مربعات القوائم الجانبية أسفل الصفحة !! | دمعة حُزن | مدونات ووردبريس المجانية | 2 | 10-07-2008 08:26 AM |
| مشكلة في مربعات القوائم الجانبية | KAMOKAZI | الدعم الفني المتقدّم | 1 | 09-28-2008 03:56 PM |
| نقاش حول تسمية مربعات القوائم الجانبية | ferasof | مناقشة عامة | 6 | 03-23-2008 07:55 PM |