Advanced WordPress Tips. Taking Your WordPress To The Next Level


Download Read Online

                    Introduction


How to deal with the WordPress visual editor stripping out line breaks. How to add a line break to your post.


This problem can be theme specific.


Sometimes the above solution won’t even work, and sometimes it simply takes a hard enter to accomplish this.


If this doesn’t work for you, consider a theme switch.


One of the most annoying parts of dealing with WordPress can be the issues that the Visual Editor cause. One of these issues is that it often strips out line breaks. If you hit enter a couple extra times, that won’t help once you publish the post.


Even if you take it a step further and actually add <br>’s via the HTML editor, they will still get stripped out.


If you do a Google search on this issue, many people will recommend turning off the visual editor and just using the HTML version of the WordPress editor. Well that is great if you are comfortable with HTML, but what about those of us who aren’t?


Turning off the visual editor for myself isn’t an option. It is an even worse solution if you are developing WordPress sites for other people. Luckily there is an easy solution using some inline CSS. If you want to add some extra white space then instead of using <br> use the following code:


Just use this code wherever you want to add a white line of space. Make sure there is nothing between the sets of brackets and that you add it in the HTML editor.


How to Center a YouTube video (and other embedded content).


Centering your YouTube videos simply looks more professional.


There is something that doesn’t seem aesthetically pleasing when a video is left justified in a blog post.


When I am browsing blogs, aesthetics matter. If a site is eye catching, neat and orderly then I am more likely to stick around. One issue that drives me crazy is when a post has left justified videos. It looks better to have the video centered.


It just looks more organized. One reason so many people don’t center their videos is because it can be a pain in the neck. In fact, when centering any flash object it can be a pain.


With a picture, you add it and then you just hit “center” in the visual editor and are good to go. Same with titles and text. Embeddable objects like YouTube videos and Divshare players are a bit different and that won’t work. Even wrapping it in center tags doesn’t always do the trick.


Luckily once again some inline CSS in the html editor does the trick! Just add your youtube code between the two sets of brackets:

Customer Reviews