Sign in

Adding custom code to only certain posts

  • This topic has 0 replies, 1 voice, and was last updated 2 days, 15 hours ago by K.
Viewing 1 post (of 1 total)
  • Author
  • #6438

    Hi there, and apologies in advance – I am not a developer and have only very basic HTML/CSS knowledge, so please be gentle. 🙂

    I would like to add some code to only certain blog entries (posts), not to all of them. The code in question is from the VG Wort, the German Collection Management Organisation for authors. So far I am using WordPress, and of course there’s a plugin for adding the VG Wort’s “counting pixel” and unique ID number to your articles with a minimum number of words (so that they can be counted and at the end of the year you get a few € in royalties, yay!).

    I found the article in your documentation on how to add custom code to posts, but there seems to be an all or nothing approach. Or I am too stupid to understand the concept. How can I turn this off or on for the posts matching the criteria?

    The code would look something like this (example from the VG Wort documentation).

    It should appear between the <body> tags.

    What exactly do I need to do (and where) to set this up, so that I can manually add that line to posts?

    I am using the “Mercury” theme.


    Thank you in advance!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.