How to make TripAdvisor Widget work on HTTPS

Recently, while working with a client, I faced an issue related to TripAdvisor review widget. The issue was the widget was not being rendered on the webpage with secure (HTTPS) url. The widget was loading Javascript from non-secure (HTTP) url and the webpage was blocking that content being requested from a non-secure url.

After going through TripAdvisor support forums, it became clear that they had no solution for this, as the request to fix this bug had gone unanswered and related post had been closed. It was time for brainstorming :)

Have a look at their widget: (more…)

How To Create WordPress Theme

How to Create a WordPress Theme

We are going to create a simple WordPress theme to have the basic idea of WordPress theme development.

Theme Structure

There will be five files in our theme:

  1. style.css – Will have the CSS style and theme information, like – author and other complimentary stuff
  2. index.php – Is the main webpage template
  3. header.php – Is template file for the header area of webpage
  4. sidebar.php – Is template file for the sidebar area (right side) of webpage
  5. footer.php – Is template file for the footer area of webpage

(more…)