custom single post

Posted in: Newspaper
Post count: 38

Hi,

I would like to place content like blocks underneath of the comment area in the posts. Is that somehow possible?

Thanks,
Timo

Post count: 23312

Hello Timo,

If you want to add blocks content underneath of the comment section for each post, you can do that if you are using do_shortcode method. First of all, you have to get the block shortcode from Visual Composer, like this -> http://screencast.com/t/0q9H5cbW -> http://screencast.com/t/Ei4AYqlilpc Please notice that you have to introduce the code for each single template is used by you.

The code is ->

<?php echo do_shortcode('[vc_row][vc_column][td_block_13][/vc_column][/vc_row]');?>

The result you should see here -> http://screencast.com/t/xn9hS5s9

Hope this helps!

Thank you for the message!

Post count: 38

Hi Catalin,

thank you so much!

By making these changes the next topic comes up: Is it possible to hide the comments for the readers by default and give them a “Show comments” button instead?

Thanks for your fantastic support!

Timo

Post count: 23312

Hello Timo,

Unfortunately, our theme does not have such an option for your desire. You can achieve this only through coding. Please notice that is not a simple task and require to do some additional customizations in order to achieve best results according to what you want. As a hint, you have to alter the code from comments.php code file and add the condition using if ( is_user_logged_in() ) and then you have to create a button in HTML which you add it to the file. -> http://screencast.com/t/ZAN5dgk3
If you want to display more levels in our theme and you are not aware to the steps in this regard, please consider hiring a freelancer/developer to do this for you because we cannot provide customization services at the moment, sorry!

Hope this helps!

Thank you for your message!

Post count: 38

Hello Catalin,

it works well to show content underneath the comment area, as long as I use the default template with a sidebar. When I use the same template but without the sidebar, it doesn’t show my content underneath the comments.

Any idea?

Thank you!

Post count: 23312

Hello Timo,

I assume that you are referring to your first request, about adding the block content after the comments section for each post. As you can see in the core file, you have 3 cases ->default, sidebar left and no-sidebar. Please ensure that you have introduced the code that I gave you above for each case for a good result, otherwise, for those cases which have not entered the code you will not have the desired result.

Hope this helps!

Thank you for the message!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.