How To: Customize More tag in WordPress How To: Customize Meer tag in WordPress

ADVERTISEMENT ADVERTISEMENT
To get our software and web/tips via email, sign up for Om onze software en web / tips via e-mail, meld u aan voor daily email newsletter dagelijkse e-mail nieuwsbrief . .
Subscribe to RSS feed Abonneren op RSS-feed or of follow me follow me on Twitter? op Twitter?

WordPress is WordPress is one of een the most popular blogging software today. de meest populaire blogsoftware vandaag. One of its biggest problems is duplicate content creation. Een van de grootste problemen is duplicate content creatie. It has been a major concern, and was noticed by WordPress developers. Het is een belangrijk aandachtspunt, en werd opgemerkt door WordPress ontwikkelaars. 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–>. Ze een nieuwe functie toegevoegd, waarbij je kon laten zien slechts een deel van de post op de pagina's van andere dan de post-pagina, met behulp van de HTML-commentaar <!-Meer->. 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. Je hoeft niet om uw handen vuil te krijgen door het toevoegen van de code - net plaats de cursor waar u de post worden afgekapt, en klik op de meer-tag in de rij knoppen in post-editor.

The more tag inserts a link to the post at the place where the post is truncated. Hoe meer tag voegt een link naar de post op de plaats waar de post is afgebroken. The default anchor text is quite boring – you would see the same text on a few million other blogs. De standaard anchor-tekst is vrij saai - u dezelfde tekst zou zien op een paar miljoen andere blogs. This can be customized to your taste, and is as easy as sipping tea(if you don't like it, drink coffee/beer). Dit kan worden aangepast aan uw smaak, en is net zo eenvoudig als nippen thee (als je niet bevalt, drinken koffie / bier).

Let's do it Let's do it

Here are the steps to customize the more tag: Hier zijn de stappen om de meer-tag aanpassen:

ADVERTISEMENT ADVERTISEMENT

  • In your theme files, open up index.php in any code editor, like Notepad, Notepad++ or Metapad. In uw thema-bestanden, openen index.php in een code-editor, zoals Kladblok, Notepad + + of Metapad.
  • In it, find this bit of code (use Find function): In het, dit stukje code (gebruik vinden Find-functie):
    <?php the_content(); ?>
    This code may vary depending on the theme. Deze code kan variëren afhankelijk van het thema. However, it will contain the parts <?php the_content Het zal echter bevatten de onderdelen <?php the_content
  • Replace that code with : Vervang deze code met:
    <?php the_content(" (More...) "); ?>
  • (More…) is the text that will be displayed. (Meer ...) is de tekst die wordt weergegeven. To customize it, replace the parts in bold to whatever you want. Om aanpassen, vervangen de onderdelen in vet aan wat je wilt.
  • Save the file and upload it to your server. Sla het bestand op en upload het naar uw server.

That's it. That's it. Hopefully, now you've got the text that you want. Hopelijk, nu heb je de tekst die u wilt. Wasn't it easy? Was het niet gemakkelijk? I told ya' so… Ik vertelde ya 'dus ...

To get our latest articles, Om onze nieuwste artikelen, click here to sign up klik hier om in te schrijven for our free email newsletter or subscribe to voor onze gratis e-nieuwsbrief of abonneer op RSS feed RSS

§ Comments § Reacties
  • Ashwini says: Ashwini zegt:

    Is it also called expandable post summary? Is het ook wel uitbreidbaar post samenvatting?

  • Nirmal says: Nirmal zegt:

    I Would suggest you to use Excerpts in front page rather than More. Ik zou je aanraden om Uittreksels gebruiken in voorpagina in plaats van meer. Both does the job, but still excerpts does it better. Beide doet het werk, maar nog steeds fragmenten doet het beter.

  • Sumesh says: Sumesh zegt:

    @Nirmal: Actually, I use neither more tag nor excerpts. @ Nirmal: Eigenlijk gebruik ik niet meer tag noch fragmenten. I use Evermore plugin . Ik gebruik 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. Het is vergelijkbaar met fragmenten, maar het voordeel is dat het niet afgesneden posten indiscreet, zoals in het midden van een paragraaf.

    @Ashwini: I believe you are talking about expandable post in Blogger. @ Ashwini: Ik geloof je het over uitbreidbaar post in Blogger. This is different – only applicable for WP. Dit is anders - alleen van toepassing voor WP. It means that only a portion of the post will be shown on any page other than the single(post)page. Het betekent dat slechts een gedeelte van de post zal worden getoond op andere pagina's dan de interne (post) pagina.
    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. Uitbreidbaar post is anders omdat het toont de volledige inhoud op te klikken, en ook zij heeft de volledige inhoud in de broncode, betekent dat er geen SEO voordelen door het gebruik ervan.

  • § Leave a Reply § Leave a Reply