For creating custom ad page, home page or category page you can create your own theme. Best way to do it is to clone existing theme and rename it.
Steps to make your own theme:
- Copy and rename existing theme folder located in
/user-content/themes/. Make sure to use unique name that cannot be overwritten with other new theme. For example add prefix that is unique to you. - Edit
info.phpfile to change theme name. - Then you can change any file within your new theme.
Considerations when making your own theme
Pros:
- Making your own theme gives you much more flexibility to match your bran design and add some custom features related to your business.
- It will not be overwritten by classibase or theme updates.
Cons:
- In case default classibase themes get new features that you would want in your theme then you need to migrate those features to your theme manually.
FAQ:
Using Classibase Child themes
Hi guys,
During my days working with WordPress themes, I commonly used the method of Child themes to customize my themes. Child themes can be very useful if handled appropriately.
I wonder if we can create child themes from the classibase theme, so we can work out some customs changes within the script itself, while not loosing these changes when a new version update comes.
— Pascuale
Answer:
Classibase does not have child theme feature. You can create your own theme by copying one of default themes as described in article above.
How to edit the Ad pages?
Hi guys,
I wish to edit the ad pages and style them as per my needs. I’m not sure which file has the information of ad/listing pages.
Is there a plugin that can be used to edit ad pages? Because if I hard coded them, whenever I update Classibase software, I will have to make the changes again. So if there is any plugin system, please suggest.
Thanks,
— Andy.
Answer:
You can duplicate your theme folder and rename it uniquely so that it will not be overwritten. Read how to duplicate theme in above article.
Then for ad page edit /user-content/themes/YOURTHEME/views/index/ad.php
for editing listing pages edit /user-content/themes/YOURTHEME/views/index/_listing_row.php or category.php page.
Add new widget location to theme
My question is if it is possible to add widget to an area that is not predefined in Admin panel.
I would like to add page widget (i. e. pages links) to the page footer, and not to the sidebar.
Most close to area is the “Content bottom” but that would make this widget area unavailable for other stuff, such as adsense.
Can I call a specific widget (widget pages) with some <?php ?> code? What code?
Thank you very much.— info
Answer:
To define new widget location follow these steps. Lets assume you wan to add widget location content_bottom2:
- Add new widget location to
/user-content/themes/YOURTHEME/info.phpfile like this, aftercontent_bottom.... 'content_bottom' => array( 'title' => __('Content bottom'), 'description' => __('After content and sides') ), 'content_bottom2' => array( 'title' => __('Content bottom 2'), 'description' => __('After content and sides') ) ... - Then on
/user-content/themes/YOURTHEME/layout/frontend.phpfile add widget location to any place you want widgets to appear this code.<?php echo Widget::renderThemeLocation('content_bottom2', $this->vars, '<div class="{id} wide" role="complementary">{content}</div>'); ?> - Also you can add this widget location to any of view files as well if you want.
- Then add any widget to new location same way as you add widgets to any location from admin panel.
Prefer adding new widget area only to your own custom theme. Because changes made to any default theme will be overwritten with theme update.
Let me know if you have any problems implementing it.
Thank you.
It worked perfectly.— info
What is next: