HOW TO DISPLAY ALT IMAGE AND CAPTION OF IMAGE IN WORDPRESS THEME DEVELOPMENT?

wordpress theme development

Alt is crucial part of SEO because it describe the image for engines and screen readers. whereas, the caption is optional and can be used only when you need to provide additional information about the image to website visitors. FOR CAPTION to display caption is an easy task. just you need to put this code … Read moreHOW TO DISPLAY ALT IMAGE AND CAPTION OF IMAGE IN WORDPRESS THEME DEVELOPMENT?

DISPLAY CATEGORY LIST OF POST IN WORDPRESS DEVELOPMENT.

In wordpress there can be more than one category. Thus it has to be kept in unordered list <ul> . The php command get_the_category() gives the array form of all the category. If you want to separate category by only comma you can do this <?php $category=get_the_category(); $separator=”, “; $catall=”; foreach($category as $cato){ $catall=$catall.”<a href=”.get_category_link($cato->term_id).”>”.$cato->cat_name.”</a>”.$separator; … Read moreDISPLAY CATEGORY LIST OF POST IN WORDPRESS DEVELOPMENT.

CUSTOM LOGO IN WORDPRESS DEVELOPMENT .

Custom Logo is your Brand Logo which is shown usually above or on navbar. During the development of wordpress theme, you need to setup the custom logo design. The image or log is shown in the dashboard>customize>site identity. But It is not shown unless you put these code in the function.php . heightExpected logo height … Read moreCUSTOM LOGO IN WORDPRESS DEVELOPMENT .

How To display Favicon, Site Title and Tagline on wordpress development?

What is site Icon?It is small icon on the tab bar of your websiteWhat is title and tagline?They are name and short description on title of your site. Favion along with site title and Tagline is found in dashboard>customize>site identityDuring development of wordpress you have to hard code for showing these. First of all lets … Read moreHow To display Favicon, Site Title and Tagline on wordpress development?

How to add Features in WordPress using add_theme_support Function

While developing wordpress theme, you wont get section to add post image. So you need to add the following codes to function.php To display thumbnail in single.php or page.php (anywhere in frontend), you need to insert this code inside php // Add feaure image thumbnail function thumbnail_add(){ add_theme_support( ‘post-thumbnails’ ); } add_action(“after_setup_theme”,”thumbnail_add”); add_action is an … Read moreHow to add Features in WordPress using add_theme_support Function