How to add regularly used bits of code into posts?

  • Unknown's avatar

    Hi, I’m sure this must already have been discussed but perhaps I’m just not using the right terminology in my searches.

    I regularly add identical bits of code to my blog posts, for example a line in different sized text. Each time I either need to manually type “<span style=”font-size……” etc. , or select a previous post, then choose to edit it, copy and paste from that into the new post. This is really cumbersome, particularly if I want to use a different size for that text but can’t remember exactly what code I used last time, forcing me to search through previous posts until I find the appropriate example, then edit/copy/paste etc.

    Is there some feature in the editor to allow one to store regularly used bits of code to then insert into new posts easily?

    Thanks in advance for any advice.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You are correct in that you need to manually type that into the code editor every time if you want to modify the font in each paragraph.

    Lower-impact solutions are to choose a theme whose font you prefer OR to learn CSS and purchase the CSS upgrade, making the coding changes on your own.

  • Unknown's avatar

    Thanks, raincoaster. I feared it might have to remain a cut/paste jobbie.

    I’m quite happy with the theme and font in general, it’s just the occasional small subtexts etc. I adjust.

  • The topic ‘How to add regularly used bits of code into posts?’ is closed to new replies.