How can I do this? Wordpress...

Discussion in 'HTML & Website Design' started by GreenDog, Nov 6, 2008.

  1. #1
    I have a star rating system auto interested to each post. I want to figure out how to put, "Rank Dog Food:" right above the stars, without editing every post. You can see it here:http://dogfoodchat.com/bil-jac/

    Thanks.
     
    GreenDog, Nov 6, 2008 IP
  2. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #2
    add the code in your index.php or single.php
     
    MeetHere, Nov 6, 2008 IP
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    What plugin are you using for the ratings?
    The easiest way to edit all instances is to edit the plugin PHP.
     
    Kerosene, Nov 6, 2008 IP
  4. GreenDog

    GreenDog Active Member

    Messages:
    1,398
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #4
    I can do that but it adds the text after it auto inserts the star plugin. I need it before.
     
    GreenDog, Nov 6, 2008 IP
  5. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do you add the plugin code to your single.php or is it automatically inserting itself?

    For example if you open single.php and add the text, "Rate Dog Food:" right after <?php the_content ?> inside your single.php is it still appearing undeneath the rating?

    Then if so looks as though the plugin is embedding itself as part of the_content, so the only way around this would be to edit the plugin php file.

    The easiest way is probably to open the .php file for the plugin, find "<div class="ratingblock">" and add the text immediatley before this.
     
    wd_2k6, Nov 6, 2008 IP
  6. GreenDog

    GreenDog Active Member

    Messages:
    1,398
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #6
    Its definately embeddding itself. I am going to try and find it in the plugin.
     
    GreenDog, Nov 6, 2008 IP
  7. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes jus do as I said above then go inside wp-content then open the plugin folder and then open the php file inside there. Then click Edit Find and search for: <div class="ratingblock"> and add the text before that then re-save the file.
     
    wd_2k6, Nov 6, 2008 IP