Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged css



1 2 Next »
create two custom fields: one called custom_css and one called custom_js.
1 80 posted 10 years ago by scitrenbaumgmailcom
Insert this code into your functions.php and you'll get a custom CSS box on every page and post. Be sure your theme has wp_head(); in it.
2 198 posted 10 years ago by Kerrick
In v1.6, the Thesis Theme has a bug which removes a necessary space in the HTML body tag if you add a filter targeting the thesis_body_classes hook. To get the native WP body_class function to work, use this code:
2 137 posted 10 years ago by joelhaus
1 72 posted 10 years ago by ReeceMarsland
1 75 posted 10 years ago by ReeceMarsland
1 81 posted 10 years ago by ReeceMarsland
0 78 posted 10 years ago by yisreldov
0 66 posted 10 years ago by metoikos
Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
1 130 posted 10 years ago by joelhaus
Code explains itself. I plan to do a lot more work on it - just wanted to throw it up here for a little sharing. Feel free to take it to the next level.
1 77 posted 10 years ago by brettbergeron
1 74 posted 10 years ago by iTony
Some things I start with as standard in any style.css file for Wordpress.
2 75 posted 11 years ago by Ben
Standard CSS markup for wordpress
7 134 posted 11 years ago by Ben
Template Tag body_class The coming WordPress 2.8 provides a new Template Tag, body_class. This function gives the body element different classes, which gives you the possibility to use it effectively with CSS.
3 54 posted 11 years ago by jessibird
3 90 posted 11 years ago by iTony
This will create a Navigation from a MySQL database table names. It removes the table name "includes" by default so you can see how to remove any certain tables you wish to not use as a site section. Just plug in your MySQL database details and co...
3 105 posted 11 years ago by jiggyhat
2 116 posted 11 years ago by localhorst
Put this in the template.php within your template directory.
7 105 posted 11 years ago by troynt
One other thing to note, is that the php generated css file can make use of query parameters, for instance: <link rel="stylesheet" href="base.css.php?type=alternate" type="text/css" > in your PHP file you can use the variable: if ($_GE...
2 192 posted 11 years ago by dbug13
Secure, Advanced, Better, Faster... function for remove/strip tags(Anti-XSS).
2 145 posted 11 years ago by YPY
This is like a cms for a stylesheet - includes all files to make a working xhtml/css demo
1 86 posted 12 years ago by perthmetro
Inserts "first" and "last" classes to the first and last items respectively. "first" and "last" classes defined in CSS as without padding.
2 88 posted 12 years ago by nijgnet
Sets the sidebar photo appropriate for a section of the site by determining the parent Page of the subpage.
4 112 posted 12 years ago by nijgnet
CSS files for larger sites can become pretty large themselves. Gzipping or compressing these files has shown to provide a reduction in the neighborhood of 70-80% of the original file size, a fairly significant 'weight loss'.
16 139 posted 12 years ago by johnself
Removes the core, and node styles from the $style variable. You most morbably already defined _phptemplate_variables($hook, $vars), in that case just add the two lines there. _sympal_theme.. is the name of the theme where we use this.
3 123 posted 12 years ago by berkes
Put classes around your bodyy, to allow different colors for seperate pages and areas on your site. IT will simply add a css-safe version of the first argument in an url. Say the url is /about_us/our_company the class will be body.about-us Require...
2 88 posted 13 years ago by berkes
Very simple navigation. Style the id using CSS. Allows you to highlight the current page with CSS.
1 119 posted 13 years ago by 1man
0 62 posted 13 years ago by Corhol
1 2 Next »