skip to Main Content

add conditional body class in wordpress

I want's to add conditional body classes for index.php, page.php, category.php, tag.php In index.php body class only want's <body class"home"> In page.php body class only want's <body class"page"> In category.php body class only want's <body class"cat"> In tag.php body class…

VIEW QUESTION

Displaying a custom image size in wordpress

In functions.php i have, function university_features() { add_theme_support('title-tag'); add_theme_support('post-thumbnails'); add_image_size('professorLandscape', 400, 260, true); add_image_size('professorPortrait', 480, 650, true); add_image_size('pageBanner', 1500, 350, true); } add_action('after_setup_theme', 'university_features'); In single-professor.php, I have: <div class="one-third"> <?php the_post_thumbnail('professorPotrait'); ?> </div> But the image size doesn't change.…

VIEW QUESTION
Back To Top
Search