WordPress.org

Ready to get started?Download WordPress

Forums

A few questions ;) (10 posts)

  1. DanM
    Member
    Posted 9 years ago #

    Hi!
    After a day or two messing around with Phu Lys' Flex theme and coming to a style I liked, there are still a few things that have been bugging me:

    1 - The Miniblog plugin. I wasn't keen on having the <br> in between each post there, so I deleted it. However, this seemed to break the plugin, thus I put it back in. Any suggestions on how to counter this?

    2 - Background images. It's just not working for me! I've tried putting the path for the image in the 'body' section in the stylesheet to no avail, and also in the header.php - body{ background: #eee url("<?php bloginfo('stylesheet_directory'); ?>);

    3 - Trackbacks. How would I include a trackback link at the bottom of each post? something like a link to askewed.co.uk/wp-trackback/postname?

    Any help would be much appreciated :)

  2. moshu
    Member
    Posted 9 years ago #

    3. The code should be in your comments.php template, I mean usually it's there.

    2. Bg images are best to keep in a directory called images in the theme, so in the stylesheet you can use something like
    body {
    background: #ffffff url('images/bg.gif');

  3. Lorelle
    Member
    Posted 9 years ago #

    Just as a note - you can't use WordPress template tags in the stle sheet,

  4. DanM
    Member
    Posted 9 years ago #

    Thanks for the quick replies, but I'm afraid neither of those solutions work. Nothing in the comments template about trackbacks, and I'm still not getting a background image displayed.
    Which is really quite annoying because before I had finished tweaking, I did have a repeating background.

    Edit: Forgive me, looked in the index.php file and found <?php trackback_rdf(); ?>. Not quite sure what to do with it though...
    Edit 2: Ok, think I've figured the Trackback problem from here

  5. moshu
    Member
    Posted 9 years ago #

    Well, maybe the author of the theme left it out. You can always check in the default or classic theme how it is done (the trackback).

    And you have 2 statements for body - one in the stylesheet and one inline. None of them points to any bg image.

  6. DanM
    Member
    Posted 9 years ago #

    Aye, I just deleted what I had done when I noticed it wasn't working...
    Anywho, thanks again.

  7. DanM
    Member
    Posted 9 years ago #

    1 - The Miniblog plugin. I wasn't keen on having the <br> in between each post there, so I deleted it. However, this seemed to break the plugin, thus I put it back in. Any suggestions on how to counter this?

    This one's still stumping me folks. I'm currently using the "php miniblog_list_entries();" format, but only because when I actually put "php miniblog_list_entries(insert the variables)" the plugin seems to break. And nothing is displayed.

    Any assistance? No doubt it's something so simple.

  8. 3 - Trackbacks. How would I include a trackback link at the bottom of each post? something like a link to askewed.co.uk/wp-trackback/postname?

    Place the following wherever you'd like it to appear in your template:
    <a href="<?php trackback_url(); ?>">TrackBack</a>

  9. DanM
    Member
    Posted 9 years ago #

    Aye, thanks. Got that bit sorted. Still got the miniblog problem, and for some reason my link to my colophon has stopped working. I haven't done anything to it....

  10. DanM
    Member
    Posted 9 years ago #

    Hmm. For some reason all the permalinks stopped working, but I managed to circumvent that by adding /index.php/ before the %postname% option in WordPress...
    The .htaccess file has all the correct rules inside. I've contacted my host about whether they've changed anything, but could it possibly be down to the server not using htaccess properly?

Topic Closed

This topic has been closed to new replies.

About this Topic