SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Guru SG1's Avatar
    Join Date
    Jul 2005
    Location
    Virginia, USA.
    Posts
    877
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why doesn't certain html code show up in Wordpress editor?

    I would ask this question on the wordpress forum but quite frankly, half the answers never go answered anymore. disappointing to say the least. but anyway, i wanted to see if anyone has an answer for this.

    I want to double or even triple space some lines in between the content.
    I put in;

    HTML Code:
    <br/>
    or even
    HTML Code:
    <p><br/></p>
    into my code in the WYSIWYG editor to double space b/w paragraphs.


    It works but how come those html codes don't appear in the code view of the editor?

    And secondly, if I go back in and edit that existing post and publish it, the existing carriage returns and double spacing are deleted. This is quite frustrating when you put in extra carriage returns for a bunch of paragraphs and they are now deleted.



    What can I do to avoid this. Are there other forms of html code that will accpet a carriage return in the code view of the editor?


  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know there's an option for a code view. I don't recall where it is at the moment though. Golgotha would know.

  3. #3
    Galactic Overlord gold trophysilver trophybronze trophy
    HAWK's Avatar
    Join Date
    Aug 2003
    Location
    New Zealand
    Posts
    12,600
    Mentioned
    987 Post(s)
    Tagged
    14 Thread(s)
    I have the same problem all the time. It's a VERY annoying bug. The spacing thing not saving seems to be rectified if you use code view.

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I know the WYSIWYG editor causes all sorts of problems for me, so I disabled it. Cannot say for sure how it works. The regular editor also causes trouble with the use of <br />

    I have noticed that creating one new line in the post like so:

    Code:
    <strong>section title</strong>
    This is the first paragraph...
    Will automatically insert a <p> around all of it and a <br /> after the closing </strong> tag, though if we spaced it 2 times:

    Code:
    <strong>section title</strong>
    
    This is the first paragraph...
    It would place both in a separate paragraph.

    Hope this helps.

  5. #5
    SitePoint Guru SG1's Avatar
    Join Date
    Jul 2005
    Location
    Virginia, USA.
    Posts
    877
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HAWK View Post
    I have the same problem all the time. It's a VERY annoying bug. The spacing thing not saving seems to be rectified if you use code view.
    Not really. If you double space by inserting a <br/> and save, but then go back to that same post and save it again, irregardless of code or visual tab view, then your original work of double spacing is ruined. The content now goes back to single space again.

    Though, I am somewhat comforted by the fact that I am not the only person suffering from this issue


  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    WordPress mark-up

    Yes, I guess WP is put together for non-techies that prefer WYSIWYG editing. It still aggravates me to enter the mark-up I want only to have it butchered. Once I had to enter a period just to preserve line spacing ! (in the hopes that most people wouldn't notice it )
    I installed the text-control plugin in the hopes that I would be able to simply paste in my mark-up, but even with trying different combinations of settings it still gave less than perfect results. I have started to mess with the wp_texturize and wpautop source code a bit, but I still haven't figured it out enough to publish a hack.
    Oh well, just thought I'd chime in and comiserate.

  7. #7
    SitePoint Enthusiast ladyqueen1988's Avatar
    Join Date
    Dec 2009
    Location
    USA
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I to have problem while spacing. I use <br /> or sometimes <p></p>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •