Customizing Blocks/Modules

Posted in: Newspaper
Post count: 85

Is there a way to change the number of columns, image size, and remove the post meta info (page views, comment count), and in alphabetical order, without creating a custom block/module?

I’m trying to create a page that lists my company’s staff from a custom post type. But obviously it doesn’t need post views and comment counts. Nor does it need to display content from the post.

I could easily create the page using Visual Composer, but I have a lot of staff, so I would like to have the listing paginated, preferably the Load More button. I also would need to use just a normal thumbnail size due to the portrait nature of each person’s photo. The aspect ratio of the thumbnails in Block3 just doesn’t lend itself to portraits of people.

Post count: 3343

Hello,
Only if you create a custom block/module that work on more columns and set it with custom post type. You can remove the page views, comment count via CSS only for that block.

Thanks

Post count: 85

In the block, how would I tell it to do a 4 column layout? For example, I’ve started off copying Block 3, renaming it block 6 (and corresponding code), then added a case for 4 columns…

Post count: 3343

Hello,
Do you manage it? Here is how the columns are created http://screencast.com/t/WvljoGtQcvP

Post count: 85

I ended up changing function inner($posts, $td_column_number = '') to force using 4 columns.

On a side note, I think I remember reading a post about search being broken for media upload/ selection… Is that going to be fixed still?

Thank you.

Post count: 3343

Hello,
That issue is fixed in 1.7.2

Thanks

Post count: 85

I’ve got the custom block and module working. But I’ve run into another issue. I’m displaying sub categories and using the Load More button to load posts using Ajax. Except that when ajax loads more posts it’s not displaying them in the 4 column layout I’ve programmed into the custom block and module. I assume there is another file I have to modify to output the correct ajax?

Also, by any chance, will the Teaser Grid component of Visual Composer ever be supported?

Thanks for all of your help.

Post count: 3343

Hello,
Take a look in td_ajax.php http://screencast.com/t/8IxNDBbdh
No, sorry for the inconvenience. If more client request it we will make it.

Thanks

Post count: 85

Looking through the ajax php, I don’t think there’s anything in there to force my custom block to render 4 columns.

In my custom block, I had set $td_column_number in function inner to 4 to force the block to render 4 columns. But maybe this isn’t the correct way to do it? If I understand the ajax php file, it gets the column number from the block. But I’m not sure how to get my custom block set to 4 columns and also the ajax…

Post count: 780

Hello,

This is the variable that instructs the ajax part what columns to load: http://screencast.com/t/CrdGo3RN . You can hardcode it but it will affect all the modules. You can also check the block type with this: http://screencast.com/t/vJcjhFy2N

hope this helps,
Radu from tagDiv

Post count: 85

I figured it out. Thank you.

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.