How to change the standard width of a page
Go to Admin panel -> Layout -> Editor and find and replace all “800px” with whatever width you want. (press CTRL+F to open search in your web browser)
Go to Admin panel -> Layout -> Editor and find and replace all “800px” with whatever width you want. (press CTRL+F to open search in your web browser)
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
I was able to get the current menu item to be blue using this: .current-menu-item li a{ color: blue }
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
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
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
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
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
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
Using wp_list_categories http://codex.wordpress.org/Template_Tags/wp_list_categories Something like this should give you what you want $args = array( ‘hierarchical’ => true, ‘hide_empty’ => 0, ‘title_li’ => ” ); wp_list_categories($args);