Sunday, September 6, 2015

Know your vehicle - part 1

Hiace Rukmani Devi Model - Toyota HiAce - H10



Kichi Kichi Delica - Mitsubishi Delica

 Delica - JR face model

 Mitsubishi Pejero - Palathsabha Model




  Mitsubishi Pejero / Montero - Mahaththaya Model


 

 Doctor Sunny - Nissan Sunny FB 13

Volkswagen Beetle - Kane Mile Model

 

 Batu Sunny - Datsun Sunny Sedan B210 1973-1977

 Lancer Attanayake Model - Mitsubishi Lancer 1985 model


Lancer ASP model - Mitsubishi Lancer 1989 model

 


 

 

 



Tuesday, March 24, 2015

remove "article:published_time" from wordpress site

The question of removing "article:published_time" and "article:modified_time" meta tags on a WordPress site has been floating around for a quite a while and I coudnt find it a proper answer any where.

This is because this these meta tags could be added by the theme or any plugin which enhances the social sharing of the site.

What I could figure out was that these are part of the Facebook Open Graph Protocol of Facebook but seems to be used by Google when indexing a page/post.

Therefore any plugin which adds OGP metadata to a page will add these lines and we need to find the plugin and comment out the code segment which inset these two meta data values.

Based on my site I found 2 plugins which provides this functionality.

1. The official Facebook Plugin
2. WordPress SEO by Yoast

How to remove OGP meta tags from Facebook Plugin


There is no guarantee that this is the correct way to do it or if it will break some other code. But it worked for me 
  • Go to the wordpress files using any file manager or FTP
  • Navigate to /wp-content/plugins/facebook folder
  • Here you will find a file called open-graph-protocol.php
  • First Backup this file ( if you mess with the code you will always have a fallback)
  • Open this file to edit and find the following code


public static function get_article_properties( $post ) {

        global $facebook_loader;


        $ogp = array(

            self::ARTICLE_NS . 'published_time' => date( 'c', strtotime( $post->post_date_gmt ) ),

            self::ARTICLE_NS . 'modified_time' => date( 'c', strtotime( $post->post_modified_gmt ) )   


  • Comment out the code as follow
public static function get_article_properties( $post ) {
        global $facebook_loader;

        $ogp = array(
        /*    self::ARTICLE_NS . 'published_time' => date( 'c', strtotime( $post->post_date_gmt ) ),
            self::ARTICLE_NS . 'modified_time' => date( 'c', strtotime( $post->post_modified_gmt ) )
        */
        );


This should do the trick for most of you

How to remove OGP meta tags from WordPress SEO by Yoast Plugin

  • Go to the wordpress files using any file manager or FTP
  • Navigate to /wp-content/plugins/wordpress-seo/frontend folder
  • Here you will find a file called class-opengraph.php
  • First Backup this file ( if you mess with the code you will always have a fallback)
  • Open this file to edit and find the public function __construct()  function in the code
  • delete or comment out the full content of this function 
  • the function will look like this if the content is deleted  
add_action( 'wpseo_opengraph', array( $this, 'publish_date' ), 19 );

Removing 'Created By" info from Wordpress Responsive Theme

This applies to Responsive Theme by cyberchimps version 1.9.8.2

Goto ... themes\responsive\core\includes and find file called functions.php
backup this file
open in a text editor
find the function function responsive_post_meta_data() and comment out the function as below
if ( !function_exists( 'responsive_post_meta_data' ) ) {

    function responsive_post_meta_data() {
        /* printf( __( 'Posted on %2$s by %4$s', 'responsive' ),
 ....................................
 ....................................
          sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ),
                         esc_attr( get_the_author() )
                )
        );*/
    }

}