Change the main width of Twenty Thirteen theme
Try adding the following to your custom css, with 960px being your desired width. .site { max-width: 960px; } And for the background color: .body { background: #f7f7f7; }
Try adding the following to your custom css, with 960px being your desired width. .site { max-width: 960px; } And for the background color: .body { background: #f7f7f7; }
two wordpress sites, two themes, one database, same content
Your two options are to add your own stylesheet to redefine the plugin’s styles, or remove the plugin’s css file entirely by dequeueing the stylesheet (assuming the plugin has correctly added the stylesheet via the API) function wpd_my_theme_css() { // dequeue plugin css with same handle it is enqueued with wp_dequeue_style( ‘plugin_css_handle’ ); } // … Read more
Safe way to echo wp_trim_words
well your question is a bit confusing because you say you had 192px “Thumbnails” assuming you mean the_post_thumbnail then the actual original image size that you uploaded originally could and would most likely be larger, in which case the regenerate thumbnail plugin would work for you. when you say you can not access featured images … Read more
The wp action hook fires pretty early, before the $post object is set. I would suggest using the appropriate hook wp_enqueue_scripts instead, and amending your code to: function profolio_localize_script () { if ( is_singular( ‘my-gallery’ ) ) { $layoutType = get_post_meta( get_queried_object_id(), ‘gallery_layout’, true ); // Rest of code } }
I’ll preface this by saying I don’t think it’s the best of ideas, but in the interest of answering the question… The general idea is to filter template, option_template, and option_stylesheet in a plugin and return your desired template slug. The rest of the code is just setting and reading the cookie. <?php /** * … Read more
I’ve struggled with the same thing pretty much always. There’s a plugin called File Un-Attach, and a Unattach and Re-attach Media Attachments. See if they work for you. There’s also 5 year old Trac ticket on this, but it seems to be under conversation still.
If you want to do that kind of thing your self, you could add a custom meta box that shows up only on that page template labeled something like “Second Content Area” that the user can enter additional content into for display below the center areas. Another possibility would be to place a (horizontal) sidebar … Read more
Everyone has got his/her own style of writing code. Personally, I believe that using different opening and closing PHP tags makes the code easy to read and understand. Theme files carry both PHP as well as HTML code, so keeping the code clean in order to make it easy to read becomes important. Adding HTML … Read more