
Hi there…
for one of my category pages I’d like to use a mix of the available modules rather than one of the modules offered. So rather than 10x M11, I’d like to have a mix that I can build with VisualComposer or if necessary by programming. If I use VC, I loose the abbility of global paging.
Please advise.
Guenter
Hi
To use diferent modules on the category page you will need custom modifications in theme’s core files and I cand provide a quick solution for that. Instead you can use blocks from Visual Composer, which are built from different modules, following this steps:
– first you need to set the block in VC and add a specific class for it as it’s necessary a custom css for this particular case: http://screencast.com/t/RmC19Befc
– switch in backend editor copy this code: http://screencast.com/t/u3Ca4vZrRXda http://screencast.com/t/oej5d5DGAkH
– insert this code in category.php file like here: http://screencast.com/t/SRIR9kv4
<?php echo do_shortcode('[vc_row][vc_column width="2/3" el_class="class"][td_block_14 limit="4" category_id="6" ajax_pagination="next_prev"][/vc_column][/vc_row]');?>
After that add this css in theme panel > custom css:
.class{
width: 100%!important;
}
The result should be like here: http://screencast.com/t/mjgyiqSCKn
This code will display the same block on all categories pages. If you need different blocks depending by category it’s need a set of conditions like this: http://screencast.com/t/kDrGBrUE
<?php
if (is_category(13)) {
block for category with id 13 goes here
}
elseif (is_category(14)){
block for category with id 14 goes here
}
?>
To get the category id follow this link: http://screencast.com/t/RZuMUg8oM01
Hope this help.
Thanks!
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-advertisement | 1 year | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement". |
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| Cookie | Duration | Description |
|---|---|---|
| _ga | 2 years | This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors. |
| _gat_gtag_UA_43963494_1 | 1 minute | This cookie is set by Google and is used to distinguish users. |
| _gid | 1 day | This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form. |
| Cookie | Duration | Description |
|---|---|---|
| IDE | 1 year 24 days | Used by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile. |
| test_cookie | 15 minutes | This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies. |
| VISITOR_INFO1_LIVE | 5 months 27 days | This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website. |
| YSC | session | This cookies is set by Youtube and is used to track the views of embedded videos. |
| Cookie | Duration | Description |
|---|---|---|
| CONSENT | 16 years 5 months 26 days 13 hours 25 minutes | No description |
| yt-remote-connected-devices | never | This cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video. |
| yt-remote-device-id | never | This cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video. |