• Hello,

    I am working on a site currently that is built on WordPress. I am having trouble making changes stick.

    For instance, I decided to add in h10 and h11 and give each header custom styles. I will apply h10 or h11 via the html editor and then save. However, if I go back in the visual side and add in pictures, etc., then it completely erases some of the styling I added via the html part of the editor.

    In addition, adding spaces or line breaks has proven to be difficult as well. I have added about 3 or 4 line breaks
    and then update. When I refresh the page to make sure — it doesn’t reflect the line breaks and when I go back into the editor to see what is up — my line breaks have disappeared (upon update of page).

Viewing 6 replies - 1 through 6 (of 6 total)
  • I decided to add in h10 and h11

    Why? Those tags don’t exist. You can’t simply add new header tags on a whim.

    if I go back in the visual side and add in pictures, etc., then it completely erases some of the styling I added via the html part of the editor.

    If you have used the HTML tab, you have to stick to that tab. Otherwise (and as you’ve seen) the Visual Editor will remove most (if not all) of your custom markup.

    Thread Starter kjetterman

    (@kjetterman)

    Okay the first part makes sense.

    However, when I go back to strictly Visual editor and add spaces between photos, etc., and then update the spaces disappear and everything scrunches back up.

    Thank you for the help btw!! ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You can’t add extra spaces, it’s just going to be ignored by HTML anyway.

    As for line breaks …. you’re not supposed to use them for formatting.

    Your theme’s CSS normally controls the spacing etc on your pages, so you would probably need to edit your theme’s stylesheet.

    Thread Starter kjetterman

    (@kjetterman)

    So for instance, if I was going to make a blog post and I wanted to add spaces between text and a picture, I couldn’t do that? Forget the HTML part of it. Let’s say I *just* use the WYSIWYG editor to change my pages. From what I gather, I cannot actually put a couple of spaces in (kind of like double space) in one part of my post? Is that right?

    Esmi — if I edit my theme’s style sheet — then I could probably have a separate style for each page, right? So let’s say I have .page-5 (which would be a css selector). Theoretically, I could set the css for page 5 using CSS. Correct?

    Thank you so much for the guidance!! ??

    I couldn’t do that

    You could but it would probably mean either adding inline CSS to the image or text. Or adding some post/page specific CSS to your theme’#s stylesheet.

    if I edit my theme’s style sheet — then I could probably have a separate style for each page, right?

    Yes – assuming your theme uses the body_class() and/or the post_class() core functions that would allow you to target your CSS at specific pages.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changes not sticking!’ is closed to new replies.