WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] <sup>? (11 posts)

  1. ajmcgraw
    Member
    Posted 6 years ago #

    Hello,

    I see nothing in the write-post editor for superscripts. I tried editing the html, and enclosing my stuff with <sup></sup>, and it shows up just fine in the Visual editor, but when I actually publish, my site does not show the text to be super-scripted.

    How can I get superscripts working?

    Thanks!

  2. moshu
    Member
    Posted 6 years ago #

    No custom html code will work ever if you keep the wysiwyg animal turned on. Turn it off for good (in your user profile).

  3. ajmcgraw
    Member
    Posted 6 years ago #

    No custom html code will work ever if you keep the wysiwyg animal turned on. Turn it off for good (in your user profile).

    I've only been using WordPress for a day, and I already hate that wysiwyg editor. :)

    Thank you!

  4. peiqinglong
    Member
    Posted 6 years ago #

    You need to style your CSS to show the sup/sub...try this in your CSS:

    sub {vertical-align: sub; }
    sup {vertical-align: sup; }
  5. moshu
    Member
    Posted 6 years ago #

    No, you don't.
    You can, but you don't need to.

  6. ajmcgraw
    Member
    Posted 6 years ago #

    No custom html code will work ever if you keep the wysiwyg animal turned on. Turn it off for good (in your user profile).

    Actually, I just tried this, and it still doesn't work. I also added to my CSS like peiqinglong suggested, and still nothing. Anything wrapped in <sup> tags just ends up in normal script. The html still shows the <sup> tags after I save, but they just don't do anything.

  7. moshu
    Member
    Posted 6 years ago #

    It works on my blog. No CSS, just plain old HTML tag <sup> around my footnote numbers...

  8. ajmcgraw
    Member
    Posted 6 years ago #

    It works on my blog. No CSS, just plain old HTML tag <sup> around my footnote numbers...

    It's the theme I'm using (Librio). I just loaded another theme, and the <sup>'s work.

    I really like this theme, though. If the theme causes this somehow, do you have any idea where I could look to fix it?

  9. moshu
    Member
    Posted 6 years ago #

    Check its stylesheet... sometimes theme authors add really weird things to it (like 0 margins for all paragraphs, ending up with no breaks in text; defining <em> as bold and other such idiotic things).

    Minutes later:

    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend {
    	margin: 0;
    	padding: 0;
    	border: 0;
    	outline: 0;
    	font-size: 100%;
    	vertical-align: baseline;
    	background: transparent;
    }

    Quod erat demonstrandum...

  10. ajmcgraw
    Member
    Posted 6 years ago #

    Quod erat demonstrandum...

    Indeed.

    Just fixed it. Thanks!

  11. peiqinglong
    Member
    Posted 6 years ago #

    Check its stylesheet... sometimes theme authors add really weird things to it (like 0 margins for all paragraphs, ending up with no breaks in text; defining as bold and other such idiotic things).

    That's why I usually add the sup/sup in my stylesheet, I'm one of those idiots that does the global reset. :)

Topic Closed

This topic has been closed to new replies.

About this Topic