Skip to content

edocbuhtig/wordpress-custom-theme-bootstrap-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Bootstrap 5 Starter Theme, for WordPress with SEO meta tags

Clone repo upload the (zip) to themes folder and activate from admin panel, create few pages, create a new menu add pages to the menu, select menu location save and browse the site.

External lib includes, as follows:

Last tested locally on WordPress 5.x running PHP Version 7.4.1

Search Engine Optimization, meta tags, title tags

Adding meta tags as below:

function theme_demo_header_metadata() {

    if ( is_page('Home') ) { 
        ?>
        
        <meta name="description" content="Free custom php wordpress theme with bootstrap">
        <meta name="keywords" content="Free custom php wordpress theme with bootstrap">
        
        <meta property="og:title" content="Free custom php wordpress theme with bootstrap "/>
        <meta property="og:image" content=""/>
        <meta property="og:description" content="Free custom php wordpress theme with bootstrap "/>
        <meta property="og:url" content="sunilkumar" />
        <meta property="og:type" content="article" />

        <meta name="twitter:card" content="summary" />
        <meta name="twitter:site" content="" />
        <meta name="twitter:creator" content="" />
        
        
        <?php return; 
    }

  
}
add_action( 'wp_head', 'theme_demo_header_metadata' );