CSS gap issue in div element

The problem sounds to be related to CSS, try using the following solution: .tg-topcity, .tg-popularcities { width: 100%; display :inline-block; float: left; } or you may also try this instead: .tg-topcity, .tg-popularcities{ display: flex; flex-direction: row; flex-wrap: wrap; }

Remove CSS Attribute by Overriding CSS in Child Theme

I’m assuming that this is happening because the style sheet will only override the attributes that exist in the parent theme and child theme; thus, leaving attributes that are NOT in the child theme, in the parent theme. That’s not how it works. There’s nothing special about WordPress parent theme and child theme stylesheets. They’re … Read more

WordPress backend is loading without style

The load-style.php URL you provided above is redirecting to the login form and this is why the inspector is complaining about a HTML response. I tested this on a fresh installation and WordPress returns the styles even if you are logged off so you much have some .htaccess or PHP code redirecting the load-style.php file … Read more

Placing background image over section divider

It looks like you’re using Divi, and you’ve placed the image in the column that Divi is calling “Section 4” on that page. If you want the image to appear in section 3 and get cut off by the divider, then you have a couple of solutions: Move the image to section three, and adjust … Read more

Is there a way to add new div class via a theme’s Additional CSS interface?

Ok, I got it figured out. I added <div class=”title-border-top”> </div> above the page title (and actually added <div class=”title-border-bottom”> </div> below for future modification. I then added the following in the Additional CSS: .page-header .title-border-top{ background-image: url(“https://store.dolina.org/wp-content/uploads/2020/08/wall-murals-floral-polish-folk-art-pattern-in-square-wycinanki.jpg-e1596302126833.jpg”); background-repeat: repeat-x; height: 30px; margin: 10px; } It is working and I hide the entry-sub-title I had … Read more

Update wordpress causes white space on admin

According to this post: How to fix the admin menu margin-top bug in WordPress 5.5? There is no solution yet, but maybe this will help you find one. Personally, I tested locally and on a SiteGround server, but I can’t recreate the problem. However, if you can tell yourself it’s a PHP error like the … Read more

How can I force Dynamic CSS via ACF values to update on page load?

Per Tony’s suggestion, adding a random string to the CSS version did the trick. Here’s the code I used to do that. First this code to generate the random number. // get theme version function cd_get_version() { $theme_data = wp_get_theme(); return $theme_data->Version; } $theme_version = cd_get_version(); global $theme_version; // get random number function cd_get_random() { … Read more

How to apply CSS based on publishing date

You can compare the post date to the date of your choice and enqueue different styles depending on the result: <?php function my_enqueue_styles_depending_on_date() { global $post; $style_switch_date=”20201230″; // the trigger date if ( is_single( $post->ID ) ) { $post_date = get_the_date( ‘Ymd’, $post->ID ); if ( $post_date > $style_switch_date ) { wp_enqueue_style( ‘css_for_newer_posts’ ); } … Read more

How to sync the style in the visual editor with the style of a child theme?

The parent theme’s functions.php has two functions to manage the editor styles. They are twentytwenty_classic_editor_styles() and twentytwenty_block_editor_styles() and they’re both hooked to init. For example, the classic editor function reads: function twentytwenty_classic_editor_styles() { $classic_editor_styles = array( ‘/assets/css/editor-style-classic.css’, ); add_editor_style( $classic_editor_styles ); } add_action( ‘init’, ‘twentytwenty_classic_editor_styles’ ); To override those styles, copy both of those functions … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)