WordPress.org

Forums

[resolved] <code> question (7 posts)

  1. blastradys
    Member
    Posted 9 years ago #

    In every theme but one the tags work correctly. But in my default theme a pound sign is added before the start of the code excerpt. Example here. Thanks!

  2. oriecat
    Member
    Posted 9 years ago #

    I don't see a pound sign?

    (I'm in FF, if that is making a diff.)

  3. blastradys
    Member
    Posted 9 years ago #

    Sorry, you were not seeing the theme I am having problems with, I forgot to change it back. Look again, the pound sign is there now. Thanks.

  4. moshu
    Member
    Posted 9 years ago #

    This is from your stylesheet :)
    code {
    font-style: normal;
    color: #c30;
    padding-left: 15px;
    background: url(images/code.gif) no-repeat 0 3px;
    font-family : Fixed, 'Courier New', Courier, monospace;
    }

  5. Jonathan Dingman
    Member
    Posted 9 years ago #

    It appears that under the code {} CSS, he uses an image, so it's possible you could use an image for it. But I'm not sure if you could use something like that with plain text unless you ran a foreach() on each line before spitting it out in the element.

  6. blastradys
    Member
    Posted 9 years ago #

    Hahaha. I see that the CSS of the theme instructs the page to call "code.gif" in front of any code excerpt. I guess that is part of the gutenburg theme? So I suppose I could delete the "code.gif" file from the images directory or find where the instruction to include it lies in the CSS and delete that (I do not want a pound there).

    Thanks a lot - I should have seen that.

  7. Jonathan Dingman
    Member
    Posted 9 years ago #

    Oh, you were looking to take it OUT? Yeah, that would definitely take it out by removing the images/code.gif line in your CSS file. I thought you were looking to add it, sorry for the confusion.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.