How To: Customize More tag in WordPress كيفية : تخصيص المزيد من العلامة وورد في

ADVERTISEMENT إعلان
To get our software and web/tips via email, sign up for للحصول على موقعنا على شبكة الإنترنت والبرمجيات / نصائح عبر البريد الإلكتروني ، والاشتراك في daily email newsletter البريد الإلكتروني النشرة الإخبارية اليومية . .
Subscribe to RSS feed اشترك في آر إس إس or أو follow me يتبعني on Twitter? على التغريد؟

WordPress is وورد هو one of واحدة من the most popular blogging software today. الأكثر شعبية المدونات البرمجيات اليوم. One of its biggest problems is duplicate content creation. واحدة من أكبر المشاكل هي مكررة إنشاء المحتوى. It has been a major concern, and was noticed by WordPress developers. فقد مصدر قلق كبير ، وكان لاحظت من قبل المطورين وورد. They added a new feature, whereby you could show just part of the post on pages other than post-page, by using the HTML comment <!-more–>. وأضافوا ميزة جديدة ، حيث يمكن أن تظهر لك مجرد جزء من وظيفة على صفحات أخرى من صفحة ما بعد ، باستخدام تعليق أتش تي أم أل <! - أكثر>. You do not have to get your hands dirty by adding the code – just place the cursor where you want the post to be truncated, and click the more tag in the row of buttons in post-editor. ليس لديك للحصول على أيديكم القذرة عن طريق إضافة رمز -- فقط ضع المؤشر حيث تريد وظيفة ليتم اقتطاعها ، وانقر فوق علامة أكثر في صف من الأزرار في فترة ما بعد التحرير.

The more tag inserts a link to the post at the place where the post is truncated. لمزيد من إدراج سمة وجود صلة لهذا المنصب في المكان الذي يتم اقتطاع هذا المنصب. The default anchor text is quite boring – you would see the same text on a few million other blogs. مرساة النص الافتراضي هو مملة جدا -- كنت انظر النص نفسه على بلوق مليون قليلة أخرى. This can be customized to your taste, and is as easy as sipping tea(if you don't like it, drink coffee/beer). ويمكن تطويعه لذوقك ، وسهلا كما هو يحتسي الشاي (إذا كنت لا تحب ذلك ، وشرب القهوة / البيرة).

Let's do it دعونا نفعل ذلك

Here are the steps to customize the more tag: هنا هي الخطوات لتخصيص مزيد من البطاقات :

ADVERTISEMENT إعلان

  • In your theme files, open up index.php in any code editor, like Notepad, Notepad++ or Metapad. في موضوع الملفات الخاصة بك ، وفتح index.php في أي محرر رمز ، مثل المفكرة ، المفكرة + + أو Metapad.
  • In it, find this bit of code (use Find function): في ذلك ، تجد شيئا من هذا الرمز (استخدام البحث عن وظيفة) :
    <?php the_content(); ?>
    This code may vary depending on the theme. هذا الرمز قد تختلف تبعا للموضوع. However, it will contain the parts <?php the_content ومع ذلك ، فإنه يحتوي على أجزاء <?php the_content
  • Replace that code with : مع أن يحل محل رمز :
    <?php the_content(" (More...) "); ?>
  • (More…) is the text that will be displayed. (المزيد...) هو النص الذي سيتم عرضه. To customize it, replace the parts in bold to whatever you want. لتخصيصه ، يستعاض عن أجزاء في جريئة لكل ما تريد.
  • Save the file and upload it to your server. حفظ الملف وانه رفع الى الخادم الخاص بك.

That's it. هذا كل شيء. Hopefully, now you've got the text that you want. ونأمل ، الآن كنت قد حصلت على النص الذي تريد. Wasn't it easy? لم يكن من السهل؟ I told ya' so… قلت يا 'حتى...

To get our latest articles, للحصول على أحدث المقالات ، click here to sign up انقر هنا للتسجيل for our free email newsletter or subscribe to لدينا الحرة الإخبارية عبر البريد الإلكتروني أو الاشتراك في RSS feed آر إس إس

§ Comments تعليقات §
  • Ashwini says: Ashwini يقول :

    Is it also called expandable post summary? كما دعا هو توسيع مشاركة موجز؟

  • Nirmal says: نيرمال يقول :

    I Would suggest you to use Excerpts in front page rather than More. أود أن أقترح عليك استخدام مقتطفات في الصفحة الاولى وليس أكثر. Both does the job, but still excerpts does it better. كل من لا وظيفة ، ولكن لا يزال مقتطفات على نحو أفضل.

  • Sumesh says: Sumesh يقول :

    @Nirmal: Actually, I use neither more tag nor excerpts. @ نيرمال : في الحقيقة ، أنا لا تستخدم أكثر سمة ولا المقتطفات. I use Evermore plugin . أنا استخدم البرنامج المساعد إلى الأبد. It is similar to excerpts, but the advantage is that it does not cut off posts indiscreetly, as in the middle of a paragraph. هو مشابه للالمقتطفات ، ولكن الميزة أنها لا تقطع بشكل أحمق وظيفة ، كما هو الحال في منتصف الفقرة.

    @Ashwini: I believe you are talking about expandable post in Blogger. @ Ashwini : اعتقد انك تتحدث عن توسيع مشاركة في مدون. This is different – only applicable for WP. وهذا يختلف -- ينطبق هذا فقط على الفسفور. It means that only a portion of the post will be shown on any page other than the single(post)page. وهو ما يعني أن جزءا فقط من وظيفة وسوف يعرض على أي صفحة أخرى من واحدة (وظيفة) صفحة.
    Expandable post is different in that it shows the full content on clicking, and also it has full content in the source code, meaning no SEO benefits by using it. توسيع مشاركة مختلف من حيث أنه يدل على المحتوى الكامل على النقر ، وأيضا لديها كامل المحتوى في شفرة المصدر ، وهذا يعني عدم وجود فوائد كبار المسئولين الاقتصاديين من استخدامه.

  • § Leave a Reply § اترك رد