TwentyFourteen Theme : Changing grid layout

Figured this out – had to change the container to hold image widths of 24.9% or 50% depending on layout, remove the clear from both post divs and stretch the .site width to 100%. From there I had either 4 horizontal images or two x two set-up. If anyone has any questions about this feel … Read more

Relative post date in recent posts list

You don’t generate a WP Loop using wp_get_recent_posts() so get_the_time() won’t pull the post date. The post date is available within the array wp_get_recent_posts() returns though: $recent[‘post_date’]. Or you can use the modified date: $recent[‘post_modified’]. This works (tested on my dev site): <?php $args = array( ‘post_status’ => ‘publish’, ‘numberposts’ => ’30’, ‘tax_query’ => array( … Read more

How to get dynamic template-function generated CSS into HEAD?

If you use wp_enqueue_style(), with your function, you could call the function from the page (single.php etc.) … pass a string through with the page name, use that in the function to decide which style you are enqueuing. This will then load the script in the head in the correct manner. https://developer.wordpress.org/reference/functions/wp_enqueue_style/ Eg. // In … Read more

How can I alternate styling of images in a post? [closed]

Florian’s answer is probably your best bet because it gives the author the most control as to how the images are aligned so that would be my first answer. However, if you don’t trust your authors to align the images themselves then we’ll have to go another route. Unfortunately for the reasons you stated above, … Read more

Widget text color change

This CSS will make your grey text in some else you want: .widget_posts_wrap .latest-posts .col-md-12 a span {color:#your-hex-code !Important;} This is for subtitles in this widget where you have latest post. And this is for titles: .widget_posts_wrap .latest-posts .col-md-12 h3 a {color: #your-hex-code !important;} Also just note to change #your-hex-code part with actual hex code. … Read more