Earlier stylesheet not overriding later one

I looked at my child theme’s functions.php and I found that I had commented out the line to enqueue the child style.css. I’m guessing that the stylesheet is loaded automatically because that is the active theme. I would suggest you try not explicitly loading your child theme’s stylesheet and see if that helps. P.S. Only … Read more

wordpress site – using custom database and PHP

Since we do not know how the data should be represented on the ‘front-end’ (read WP install), it is hard to say. You could convert the existing database to use custom tables. Create a small REST(1) JSON/XML(1) API(1) on the ‘other’ application. Then code a WordPress plugin that shows the data from the API with … Read more

Best practice for Designing a Plugin with this scenario

You can create a page after your plugin is activated. Take a look at this: register_activation_hook( __FILE__, ‘insert_page’ ); function insert_page(){ $my_page = array( ‘post_title’ => ‘My Page’, ‘post_name’ => ‘MyPage’, ‘post_content’ => ‘My page’s content.’, ‘post_status’ => ‘publish’, ‘post_author’ => get_current_user_id(), ‘post_type’ => ‘page’, ); wp_insert_post( $my_page, ” ); } Then assign your template … Read more

How do I edit text displayed on my browser tab?

You can either use this code in your function.php remove_all_filters( ‘wp_title’ ); add_filter(‘wp_title’, ‘filter_pagetitle’, 99,1); function filter_pagetitle($title) { $title = get_bloginfo(‘name’); return $title; } Or install plugin like Yoast SEO. EDIT : Screenshot UPDATE : Change header.php in your theme folder if above solution doesn’t work for you. <title><?php get_bloginfo(‘name’); ?></title>

Responsive issue with secondary logo – not sticking in position [closed]

With the use of bootstrap (which u use) this is fairly simple. You can just do like this = <div class=”container”> <div class=”row”> <div class=”site-branding”>logo 1</div> <div class=”secondLogo”>logo 2</div> </div> </div> *menu goes here* first div you give : .site-branding { float: left; margin-bottom: -30px; width: 110px; } Second div : .secondLogo { float: right; … Read more

How to turn each phone number within the $content to a telephone link?

You can achieve it by using following custom code. function accessnumber( $content ) { $content = preg_replace( ‘#(<div[^>]*class=\”zebra[^>]*\”>)(.*?)(</div>)#is’, ‘$1<a href=”https://wordpress.stackexchange.com/questions/266577/tel:”>$2</a>$3’, $content ); return $content; } add_filter( ‘the_content’, ‘accessnumber’, 60 );

Header Sidebar Won’t Move Lower – Want to Align with Header Logo [closed]

This is more of a css question, but here’s what i found looking at your site: This selector will control it: .site-header .widget { margin: 40px 0 0 0; } this is the code that has padding: <aside id=”dokna_product_search-2″ class=”widget widget_dokna_product_search”> Or if that doesn’t work try making it more specific: That box (col-md-8.col-sm-7.clearfix) has … Read more