Global Pagination or Mix of Modules

Posted in: Newsmag
Post count: 27

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

Post count: 6535

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!

  • This reply was modified 10 years by Andrei L..
  • This reply was modified 10 years by Andrei L..
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.