WordPress

CMS blog system

IE8-9 Do Not Wrap Long Text CSS Fix

Our modified theme has problem with ie 8-9 as always, this time it’s the long text NOT wrapping inside the content body. add =” word-wrap: break-word;” or “word-break:break-all;”  in css at the content. .post_wrap { clear:right; } .post { float:right;width:88%; z-index:3; position:relative; } .post_content { background:#dfffdc; margin:0 38% 0 0; padding:20px 2%;color:#14000;font-size:.9em;word-wrap: break-word;} It’s fixed

Add Share This Button To WordPress

I try to avoid loading to many plugins to our WordPress blog, I prefer to add the Share This button manually to our single post (single.php). Add the script to the header.php just before </head> <script type=”text/javascript” src=”//w.sharethis.com/button/buttons.js”></script> Now, add this codes to wherever I want to appear in the single.php. Remove the ‘ both

Fix Youtube Iframe On Top Of Overlay Modals

2013-08-27 The new editor from WordPress automatically moves the height and width right after the link which causes the script NOT to work. I have to modify so that it will work as long as the height is set at 315 px as default with youtube HD. Now it will work with the new editor.

Add Shortcodes To Sidebar

Since WordPress is php based, in order to use shortcodes on the sidebar or anywhere on the theme, we have to use echo. <h2><?php echo do_shortcode(‘ catlist categorypage=yes excerpt=yes excerpt_size =255)]’); ?></h2> This is the shortcodes for catlist to list related posts in the same category on the sidebar for my single.php that I’m designing

Re-sized Images Fail To Display On WordPress

I change and modify themes once in a while when I found some nice lay-out themes. Some themes cause my re-sized images NOT to display as the sizes defined in the editor WYSIWYG. It’s the CSS problem.      Open the css file and look for “.post img”, there are 2 settings can cause this problem.