Edit the text location of a form

Inspect the text in your browser by right clicking it and picking Inspect. This should open up a window where you can adjust the CSS for all the elements on the page. You will need to play around with what needs changed. Once you figured out what needs to change, you can copy the new … Read more

Using browser detection and the body_class() function to modify css

Can’t tell you exactly why but that function didnt work for me either.. Finally i have found this script i have modified a little bit here: get_browser() Here it is (in your functions.php): function whatBrowser() { //browsers define(“UNKNOWN”, 0); define(“TRIDENT”, 1); define(“GECKO”, 2); define(“PRESTO”, 3); define(“WEBKIT”, 4); define(“VALIDATOR”, 5); define(“ROBOTS”, 6); if(!isset($_SESSION[“info”][‘browser’])) { $_SESSION[“info”][‘browser’][‘engine’] = … Read more

how to include other jquery file and css file in wordpress plugins

You should use this snippet inside your function: wp_register_style(‘mycss’, WP_PLUGIN_URL . ‘/whatever.css’); wp_enqueue_style(‘mycss’); Then you add this add_action after your function, to call your the CSS in the : add_action ( ‘wp_head’, ‘your_function_name’); For javascript, use wp_register_script() and wp_enqueue_script() instead. WordPress function reference: wp_enqueue_style and wp_enqueue_script

Theme using masonry layout script rendering overlaped images in Google Chrome [closed]

I can’t find any reference about it but it seems Google Chrome (v 21.0.1180.60) do need specified image sizes, in image tag or passing this in css (either class or local): style=”display:block;width:333px;height:333px” Or: container.img { display:block;width:333px;height:333px } Maybe this issue has something to do with this question, but I’m not sure. They say images need … Read more

Predefine Magazine Style Layouts

You can use a couple known plugins. TYPES and VIEWS, by wp-types.com. Please keep in mind that I am in no way, shape, or form affiliated with these plugins or plugin authors. Also, please note, the TYPES plugin is free, and the VIEWS plugin is premium. You will not be able to receive support for … Read more

How to change the CSS in one file?

This completely depends on your skill-level and what theme you’re using. Let’s take the Twenty Eleven Theme for example (default in current WP version). If you look at the source of the homepage, you’ll see the body element has the following: <body class=”home blog two-column right-sidebar highlander-enabled highlander-light infinite-scroll”> That is a bunch of classes … Read more

How do I change TinyMCE button “i” to create a i tag rather than em? [duplicate]

Here’s a simple function that will replace <em> with <i> on your post/page: function replace_em_with_i($content) { $content = str_replace(‘<em>’, ‘<i>’, $content); $content = str_replace(‘</em>’, ‘</i>’, $content); return $content; } add_filter(‘the_content’, ‘replace_em_with_i’); Warning: I have tested the code to check if it works (and it does work), but you might want to do some serious testing … Read more