adding additional class to get the post thumbnail [duplicate]

Sorry for late reply, already fixed, i miss understood about array, so here the code that completely run as i want it. <?php $next_post = get_next_post(); next_post_link(‘%link’, get_the_post_thumbnail($next_post->ID, ‘prev_next_img’, array( ‘class’ => ’rounded-lg object-fill w-full max-h-full’ )) . ‘<h4 class=”text-center mt-2 lg:text-base text-sm no-underline text-black leading-snug font-medium”>%title</h4>’, false); ?> in function.php i put custome image … Read more

Hide BBPress create topic on one page

This took as surprisingly long time but I managed to figure it out: fieldset.bbp-form { display: none; } .page-id-170 * fieldset.bbp-form { display: block !important; } I know this hides all and only shows on page id 170, and this is the opposite of what I asked but it suits my needs. An answer more … Read more

style.css not working but customizer additional css does?

There’s nothing special about CSS in WordPress. It follows the same rules of specificity that apply everywhere else. This means that the order of rules are can affect how they’re applied. In WordPress the styles from plugins are typically output after the styles from themes, and styles from Additional CSS are output last. So if … Read more

Font .woff files loaded don’t correspond to the displayed styles [closed]

Don’t know why but this solved the problem @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunrm.woff’); } @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunti.woff’); font-style: italic; } @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunbx.woff’); font-weight: bold; } @font-face { font-family: “Computer Modern”; src: url(‘http://localhost/sitename/wp-includes/fonts/latex/cmunbi.woff’); font-weight: bold; font-style: italic; }

New Styles Not Rendering On Mobile Phone and Tablet

Can you see the changes in an incognito window on mobile? If so, then its most likely a mobile cache issue and a common way to fix that is by adding a version number to your css file i.e. wp_enqueue_style( ‘my-main-styles’, get_stylesheet_directory_uri() . ‘/style’ . $suffix . ‘.css’, array(), $version_number_here ); If breaking the cache … Read more

Cannot add a class to metabox

You didn’t mention the library you’re using to generate this meta, but i guess it’s the cmb2 library, if it’s so then you should change your array params as follow : array( ‘label’ => esc_html__( ‘Property Lot Size’, ‘zoacres’ ), ‘desc’ => esc_html__( ‘Enter lot size of property by number. Do not use any special … Read more