Support » Themes and Templates » <code> question

  • Resolved blastradys


    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • oriecat


    I don’t see a pound sign?

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



    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.



    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;

    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.



    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.

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘<code> question’ is closed to new replies.