Accessing Style Sheet Comment Like WordPress
Have a look in /wp-includes/functions.php at get_file_data(), this is the function that pulls the data out of style.css, called from the get_theme_data() function in /wp-includes/theme.php.
Have a look in /wp-includes/functions.php at get_file_data(), this is the function that pulls the data out of style.css, called from the get_theme_data() function in /wp-includes/theme.php.
The styles are not created in CSS, they are created in page markup. If your theme and template are coded properly they make use of body_class() function, that will output number of classes for you to make use of in page source. View source of your page and <body> tag to see what you have … Read more
I think you just need to add your body “blog” class before your own css style like below: .blog .entry-subtitle { width: 100%; height: 36px; line-height: 36px; letter-spacing: 1px; color: white; font-weight: normal; font-size: 1em; text-indent: 15px; margin-top: -10px; background-color: #761616; text-transform: uppercase; } It should works.
You can do it in two ways: Apply the same IDs, classes and general DOM element identification that you have on your website, to the content being shown in the modal dialog. This way, they’ll read from the same css directives you already have in place. OR If the styles you want to copy are … Read more
In WordPress 3.5, this hook works for me: add_action( ‘print_media_templates’, ‘wpse_75746_print_style_35’ ); function wpse_75746_print_style_35() { ?> <style> .media-modal-content, .media-sidebar { background: #FFF2D4 !important; } </style> <?php } In 3.4.2, this is the one: add_action( ‘admin_print_styles-media-upload-popup’, ‘wpse_75746_print_style_342’ ); function wpse_75746_print_style_342() { ?> <style> #media-upload { background: #FFF2D4 !important; } </style> <?php }
Is this through the post thumbnail functions, or TinyMCE? If it’s through the post thumbnail, you should be able to blank out those attributes like this: the_post_thumbnail(‘thumbnail’, array(‘height’ => ”, ‘width’ => ”));
Many good text editors have a “Compare Files” funciton, so use that to compare an unedited copy of the css file and your edited copy and save the differences for your child theme.
Sounds like your Template has 2 style sheets, one that is unused. By default WordPress will look for style.css in the editor but this doesn’t necessary mean its used in the header.php Take a look at your source code and view which css files are being loaded. I suspect your see it something like: /wp-content/themes/your-theme/css/blah.css … Read more
function myButton($atts, $content=””){ extract(shortcode_atts(array( ‘text’ => ”, ‘link’ => ” ), $atts)); $html=”<a href=”” . $link . ‘”><div class=”myButton”>’ . $text . ‘</div></a>’; return $html; } add_shortcode(‘mybutton’, ‘myButton’); Add this to your functions.php and you will be able to call the button within wordpress using the shortcode you wanted. As you can see the class … Read more
The easiest and most straight-forward way to do this would be: $tax_terms = get_the_terms( $post->ID, array(‘genre’) ); $tax_terms = wp_list_pluck($tax_terms,’slug’); post_class(implode(‘ ‘,$tax_terms)); You could also apply a filter to post_class that does essentially the same. function tax_classes_wpse_105386($classes) { global $post; $tax_terms = get_the_terms( $post->ID, array(‘genre’) ); $tax_terms = wp_list_pluck($tax_terms,’slug’); $classes = array_merge($classes,$tax_terms); return $classes; } … Read more