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

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

Updating a theme

The name change by itself will not cause any problems, as long as the file header info is unique between them. https://codex.wordpress.org/File_Header Why not use the version meta on the theme and retain the same name and directory structure for the theme? You could also place the files in a proper version control system. Host … Read more

Media previews on posts

Okay so I figured out what was happening – either the new theme or an unintentional wordpress update, lead to media links being handled differently. My new theme now only needs the URL – no shortcodes or iframes – and it seems to automatically process it to display how it used to display them. Only … Read more

How to assign a Category to a Page, when both are created on theme initiation?

figured out how to accomplish my task : // function to fetch tag ID from name function get_tag_ID($tag_name) { $tag = get_term_by(‘name’, $tag_name, ‘post_tag’); if ($tag) { return $tag->term_id; } else { return NULL;} } // add categories & tag taxonomy to pages register_taxonomy_for_object_type( ‘category’, ‘page’ ); register_taxonomy_for_object_type( ‘post_tag’, ‘page’ ); // let’s create some … Read more

Site broken after deleting inactive themes [closed]

WP is trying to load the arch4 theme. which I believe to be a child theme of storefront but it doesn’t find the required init.php file because my guess is that you didn’t install storefront. Try to install storefront by going to appearance->Themes->Add New and then try reactivating your theme