Learn how to add text (plain text, HTML, PHP) widget in Classibase.
Adding text widget is similar to adding any widget in Classibase CMS. Depending on your theme you can add any widget to one of many widget locations.
Follow these steps to add text widget
- Navigate to “Appearance” → “Widgets” page on admin panel of your classifieds website.
- Select widget location for example “Content bottom”.
- Click “Add widget” button then select “Text” from popup menu. Text widget allows pasting plain text, HTML or PHP code.
- Widget will be added to the bottom of the list.
These steps are similar to adding any widget in Classibase. Default widget types include list of locations, list of categories (subcategories), latest or featured ads, list of users, RSS links, search form widget etc.
Add content to Text widget
- Click edit button on the right of the widget.
- Fill "Title" and "Text" fields. "Text" field can be plain text or HTML/PHP code. If you have multilingual classifieds website paste ad code to other locales as well by clicking on the locale flag at the top of the popup window.
- Set "Text format" field to match your text.
- Plain text — use for regular text without any html tags. For example welcome text or some additional information text.
- HTML / JavaScript — use for adding custom code. For example Adsense, Analytics, custom button, share button, banner code, custom links, subscription form, social account icons, custom CSS etc.
- PHP — use for adding custom PHP code. For example show number of ads posted in last 30 days, number of total users, RSS news from other website, current server time, categories with icons etc.
- “Hide on following page types” field allows to hide this widget on some page types.
- Then save the text widget.
- You can move widget to new position by clicking arrows icon next to the edit button.
Check your website for changes. Place as many text widgets as you want.
FAQ
Insert a iframe (piwik) in a subsite
hi,
i have made a subsite .. normal text looks fine .. but if i do a iframe in this site .. it shows only the source text in the site not the (i)frame?— mrbird
Answer:
If you want to use iframe then use Text widget and select “Text format” as “HTML / JavaScript”.
How to add Google Analytics tracker?
Analytics code can be added in 2 place.
- To "Custom footer" field on "Settings" → "Header/Footer" page. This will track frontend and backend pages. (view related tutorial, also has optimized implementation of Analytics code.)
- As a text/HTML widget. This code will track only frontend page views.
What is next:
- Add custom JavaScript (sitewide: admin and frontend).
- Add custom CSS styles.