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

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

Illegal string offset error in wordpress theme options textarea

If get_option( ‘blogkori_theme_options’ ) doesn’t have a value you’re not going to get an array back, which means that $options[‘googanalytics’] isn’t valid. You’ll need to account for this possibility. You could do that by checking if googleanalytics is set, and setting it to a new variable, or an empty string if it’s not set: $options … Read more

Redirect WP 404 to html

It looks like you have it: ErrorDocument 404 http://domain.com/custom_404.php You just have to create the static 404 page called custom_404.php in your child theme or the root of your domain. Child theme would be: http://domain.com/wp-content/themes/child_theme/custom_404.php