all images of past post messed up after changing theme

Alignleft looks like it’s behaving itself exactly as it should: aligning the image left and the text to the right of it. If you want your left aligned images to behave the same way as you ‘align none’ image, simply go to your style.css and remove ‘float:left’ from your .alignleft code: .alignleft { float: left; … Read more

Move both sidebars more to their sides [closed]

So your main Container the part with the content area and sidebar goes to a max width of 1024px. if you increase it then the sidebars will stay the same width and the extra width goes to your content area. Now how do you do this: in you style.css on line 470 this part is … Read more

Publish button inside custom field group

Try this: <div class=”my-metabox”> <!– This is your metabox HTML –> <– Add this button somewhere: –> <button id=”my-submit” class=”button button-primary button-large”>Submit</button> </div> Add this JavaScript snippet however you want only to this screen (either by checking the post type and enqueue this in the admin footer or output it directly along with your metabox … Read more

Featured images are cropped on index and post page

This is likely a tweak the theme author made to make the images in the theme responsive or adaptive. You may want to look at adding “min-height” to your CSS and this should address your problem. https://css-tricks.com/almanac/properties/m/min-height/ Also another thing to note if you using “100%” anything the actual dimension is governed by the parent … Read more

Import HTML code that loads css and javascript into specific page

Add CSS and JS Particular Page. Put this code in your current active theme function.php file <?php function function_name() { is_page( ‘about-me’ ) //is_page( ‘PAGE_SLUG_NAME’ ) { wp_enqueue_style( ‘stylecss’, get_template_directory_uri() .’/css/style.css’,”, ‘3.3.1’ ); wp_enqueue_script( ‘script’, get_template_directory_uri() . ‘/js/script.js’, array ( ‘jquery’ )); } } add_action( ‘wp_enqueue_scripts’, ‘function_name’ ); ?>

Let user override plugin CSS

How about having the location of the CSS file set as an option for the plugin in the admin area? The default setting would be your default stylesheet. The option would allow this to be changed to another specific stylesheet by the user, or removed entirely. If this option exists, your plugin enqueues the stylesheet. … Read more

Specific text not affected by CSS style [closed]

You can do that with CSS pseudo nth-child classes. Here is an example to make first two strong black. .beer-description strong:nth-child(1), .beer-description strong:nth-child(2) { color: #404040; } You can modify CSS in this as you wish.

Align form elements with css

Currently you have: #fscf_form3 div { margin-bottom: 6px; } If you increase it let’s say to 11 you can see that the box goes to the right and properly aligns. Basically using the proper selectors you need to increase either the margin-top of the div or the margin-bottom of the div above it.