Subscribe to RSS feed Vyberajte RSS kanál or alebo follow me nasleduj mne on Twitter? o rozechvění?
WordPress is WordPress je one of jeden z the most popular blogging software today. najobľúbenejšie blogy softvér dnes. One of its biggest problems is duplicate content creation. Jedným z jej najväčších problémov je duplicitné obsah tvorby. It has been a major concern, and was noticed by WordPress developers. Bolo veľkým problémom, a všimol by WordPress vývojárov. 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–>. Sú pridané nové funkcie, keď ste mohol ukázať len časť post na iné stránky, ako post-stránky pomocou HTML komentár <!-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. Nemusíte si ruky špinavou pridaním kódu - jednoducho umiestnite kurzor ak chcete, aby príspevok na byť skrátený, a kliknite na viac značiek v rade tlačidiel v post-editor.
The more tag inserts a link to the post at the place where the post is truncated. Čím viac záznamu vloží odkaz na miesto na miesto, kde sa post je skráti. The default anchor text is quite boring – you would see the same text on a few million other blogs. Predvolený text kotvy je dost nuda - mali by ste vidieť ten istý text na niekoľkých miliónov iných blogov. This can be customized to your taste, and is as easy as sipping tea(if you don't like it, drink coffee/beer). To môže byť prispôsobený na váš vkus, a je tak jednoduché, ako usrkávání čaj (ak sa vám nepáči to, piť kávu a pivo).
Let's do it Poďme to urobiť
Here are the steps to customize the more tag: Tu sú kroky, ktorými môžeme ešte tag:
- In your theme files, open up
index.phpin any code editor, like Notepad, Notepad++ or Metapad. Vo Vašom téme súbory otvoriťindex.phpv každom kód editor, podobne ako Poznámkový blok Poznámkový blok + + alebo Metapad. - In it, find this bit of code (use Find function): V ňom našiel kus kódu (použitie funkcie Hľadať):
<?php the_content(); ?>
This code may vary depending on the theme. Toto číslo sa môže líšiť v závislosti na téme. However, it will contain the parts<?php the_contentBude však obsahovať diely<?php the_content - Replace that code with : Nahradiť že kód:
<?php the_content(" (More...) "); ?> - (More…) is the text that will be displayed. (Viac ...) je text, ktorý bude zobrazený. To customize it, replace the parts in bold to whatever you want. Ak chcete prispôsobiť ju nahradiť časti tučne to, čo chcete.
- Save the file and upload it to your server. Uložte súbor a nahrajte ho na svoj server.
That's it. To je všetko. Hopefully, now you've got the text that you want. Dúfajme, že teraz máte text, ktorý chcete. Wasn't it easy? Nebolo to ľahké? I told ya' so… Povedala som áno 'tak ...
Is it also called expandable post summary? Požiadal je to aj k rozšíreniu po zhrnutie?
I Would suggest you to use Excerpts in front page rather than More. Chcel by som navrhnúť, aby ste používali Úryvky na prednej strane, skôr ako viac. Both does the job, but still excerpts does it better. Obaja sa práce, ale stále je to lepšie čiastočnom.
@Nirmal: Actually, I use neither more tag nor excerpts. @ Nirmal: Vlastne som ani použitie viacerých značiek ani čiastočnom. I use Evermore plugin . I use veky 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. Je podobný čiastočnom, ale výhodou je, že nie je vyobcován miest indiskrétně ako uprostred odseku.
@Ashwini: I believe you are talking about expandable post in Blogger. @ Ashwin: Verím, že ste hovorili o rozšírení post v Blogger. This is different – only applicable for WP. To je rôzne - len pre WP. It means that only a portion of the post will be shown on any page other than the single(post)page. To znamená, že len časť z funkcie sa zobrazí na každej stránke, okrem jedinej (post) stránku.
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. Rozšiřitelná post je odlišná v tom, že dokazuje, že kliknete na plný obsah, a tiež má plný obsah zdrojového kódu, čo znamená, SEO žiadne výhody, ktoré používate.