Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to a change the discussionexcerpt2 text to #70727C ? Please.

edited November 2011 in Vanilla 2.0 - 2.8

Sorry to bother you folks, but i having trouble figuring out how to change the discussionexcerpt2 text to a grey color (#70727C)

This plugin doesnt seem to have a CSS file, and im not educated enough in CSS or PHP to figure out how to change it.

As it is now being black font, it makes it hard to read with my theme.
Can someone please help me real quick?

-Doug

Best Answer

  • 422422 MVP
    Answer ✓
    Why not make a class in css if it isnt already there.

    .DiscussionExcerpt2 {color:#70727c;}

    There was an error rendering this rich post.

Answers

  • Send me link and i will give you the code

    There was an error rendering this rich post.

  • edited November 2011
    Nevermind I figured it out on my own. :)

    I added:
    style="color: #70727C;"

    to this line(new code included):
    echo '<div class="DiscussionExcerpt2" style="color: #70727C;">' . implode(' ', array_slice($words, 0, $Number_of_words)) . ' ...</div>';
    Maybe this will help someone in the future.
  • 422422 MVP
    Answer ✓
    Why not make a class in css if it isnt already there.

    .DiscussionExcerpt2 {color:#70727c;}

    There was an error rendering this rich post.

  • 422's way would of been much easier :D and more easily changeable later on.
  • Im still too new at php and css to figure that out. but you're right it would have been a smarter move to just add css. i ended up having to edit a second line to avoid reverting back to the original color if the post didnt have enough words in it.

Sign In or Register to comment.