Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️
Element -- selects all h2 elements on the page
h2 {| <?php | |
| //Display Fields | |
| add_action( 'woocommerce_product_after_variable_attributes', 'variable_fields', 10, 3 ); | |
| //JS to add fields for new variations | |
| add_action( 'woocommerce_product_after_variable_attributes_js', 'variable_fields_js' ); | |
| //Save variation fields | |
| add_action( 'woocommerce_process_product_meta_variable', 'save_variable_fields', 10, 1 ); | |
| /** |
| /** | |
| * woocommerce_package_rates is a 2.1+ hook | |
| */ | |
| add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 ); | |
| /** | |
| * Hide shipping rates when free shipping is available | |
| * | |
| * @param array $rates Array of rates found for the package | |
| * @param array $package The package array/object being shipped |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta http-equiv="refresh" content="0;URL=../new-page.htm" /> | |
| <title>Redirect to... title of new-page</title> | |
| </head> | |
| <body> | |
| <h1>Re-directing...</h1> | |
| <p>You are being re-directed, if nothing happens, please <a href="../new-page.htm">follow this link</a></p> |
| <?php if (qtrans_getLanguage() == 'en') { ?> | |
| <!-- stuff for English --> | |
| <?php } elseif (qtrans_getLanguage() == 'es') { ?> | |
| <!-- other stuff Spanish --> | |
| <?php } ?> |
| UPDATE `wp_posts` SET `post_type` = 'photos' WHERE `post_type` = 'members'; |
| add_filter( 'slash_edit_endpoint', 'rjh_slash_edit_endpoint' ); | |
| function rjh_slash_edit_endpoint( $endpoint ) { | |
| return 'edición'; //ends up as edicion since accents are removed | |
| } |
| function my_assets() { | |
| wp_register_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) ); | |
| wp_enqueue_script( 'owl-carousel' ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'my_assets' ); |
| .element { | |
| position: relative; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } |
| // Add custom font to font settings | |
| function wpex_add_custom_fonts() { | |
| return array( 'My Custom Font' ); // You can add more then 1 font to the array! | |
| } |