• Resolved brom

    (@brom)


    Hello!

    I’ve tried looking through most of the support pages for help on this, but I can’t seem to find any.

    Well. The thing is, I would like to be able to add some custom content for my posts (in this case, a few lines of a href= which i can fill in with new links every time I make a new post). I know this is just an issue of “luxury”, but it does take time to manually add these few lines every time.
    I can’t seem to find out how to edit the post.php or single.php (originally from the connections theme) to fit my needs.

    This a silly query? Help much appreciated ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’d suggest looking into creating some custom quicktags so when you’re writing the post, you simply use the quick tag for the standard text you want, then you can add what else you want. That way, if you switch themes, you don’t need to redo any templates.
    https://www.tamba2.org.uk/wordpress/quicktags/

    What about using the custom field?

    Thread Starter brom

    (@brom)

    I’d suggest looking into creating some custom quicktags…

    Ingenious ?? Thanks a bunch, this never crossed my mind. Now I have 3 new QT’s, a ‘|’-spacer thingy and custom text-QT, like “today’s links:” and “articles of interest:” Thanks again!

    Thread Starter brom

    (@brom)

    Here’s the quicktags I created, if anyone’s interested (modified into english):

    edButtons[edButtons.length] =
    new edButton('ed_btw'
    ,'btw'
    ,'<div class="box2">by the way :<br>'
    ,'</div>'
    ,'1'
    );

    and

    edButtons[edButtons.length] =
    new edButton('ed_art'
    ,'art'
    ,'< a href="" > article < /a > | '
    ,''
    ,'2'
    );

    (spaces in the a href-part added so as not to actually make the code there a clickable link ?? )

    This way I can press BTW, add a few ART with spaces and divider, and then press BTW again to close. The box2 class I created especially for this purpose, in the css-file. Mighty proud of myself now (and maybe getting a few laughs around here:-)

    Glad it worked out!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom content per post basis…’ is closed to new replies.