Hot answers tagged

3

This can happen if the function for enqueueing stylesheets, wp_enqueue_style() is run inside functions.php outside of a hooked function, like this: <?php wp_enqueue_style( 'my-style', get_stylesheet_uri() ); functions.php is loaded on the front-end and back-end when your theme is active, so this will load the stylesheet in both places. To only load a ...


1

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-...


1

The biggest issue you're running into is putting the_custom_logo() inside of an <img> tag. The function already outputs a full image tag, plus a link to the homepage wrapped around it. So, replace this <a class="navbar-brand" href="#" > <img src="<?php the_custom_logo(); ?>" height="42" width="42"> </a> with this <?...


1

1st variant. CEO should add xyz.org with proper IP to the hosts file on his computer. This will work on the local machine. However, if it is a laptop, and sometimes the same laptop will be used in intranet, you need another solution. 2nd variant. In hosts file, point abc.org to outer IP. On site, install plugin Multiple Domains and setup it to work with ...


1

Just for anyone else that's looking for solutions. I found this, which I find much clearer than the accepted answer. Plus it gives simple ways to change the URL on the link as well! Just a little more detailed than the accepted answer. add_filter( 'get_custom_logo', 'add_custom_logo_url' ); function add_custom_logo_url() { $custom_logo_id = ...


Only top voted, non community-wiki answers of a minimum length are eligible