mimi

Here Green highlighted name is the Title of the widget which we are finding and the Red highlighted code is the widget code ( a bunch of code for the widget) which is different for different widgets. In the above code id, title and type are also different for different widgets.Don’t bother about widget code because we are not going to change it. 🙂
Step 4:
Now we need to show or hide widget on particular pages.We have to just use a conditional statement to do this job as shown below.

Comments