customizing a theme [closed]

This is a very very broad question, probably isn’t the place for it tbh. But anyway, there are many many themes in existence already, you can modify them, generally by adding a child theme and making your modifications there, it is bad practice to update a theme directly. If you wish to extend the functionality … Read more

Instead of Custom CSS Theme CSS is loading

It is not clear if you want to just override the styles or replace the file with a new one. Whatever the case is, below code will help. Just wait for the best answer to your question. add_action( ‘wp_enqueue_scripts’, ‘add_my_style_css_also’, 99 ); function add_my_style_css_also() { wp_enqueue_style( ‘my-styles-css’, get_stylesheet_directory_uri() . ‘/style123.css’ ); } The code will … Read more

Static posts page is not working

When you use “static front page” are you selecting the actual page you want displayed on the home page? It sounds like you want the “Splash” page as the home page. You should create the Splash page in the Page Edit Screen, select a custom page template if that is what you’re wanting to use … Read more

ACF select box css color change

You will need to store the field value in a variable and use the get_field() instead of the_field() function. From there you can introduce your own custom control structure to set the color you want. Here is a snippet <?php //store the value in a variable first $option = get_field(“status”); if($option==”K dispozicii”){ ?> <p style=”color:green”>$option</p> … Read more

How to pre-set WordPress settings for specific posts?

After scouring on the net and bouncing around, I figured out how to fix my problem. Install ACF and create your own post types. In Functions.php, add the following codes to default category for that post type. function add_pastorheart_category_automatically($post_ID) { global $wpdb; if(!wp_is_post_revision($post_ID)) { $pastorheartcat = array (15); wp_set_object_terms( $post_ID, $pastorheartcat, ‘category’); } } add_action(‘publish_pastors-heart’, … Read more