Vertoh

  1. Home
  2. Docs
  3. Vertoh
  4. Frequently Asked Questions
  5. How to reduce the height of the session tile based on the content?

How to reduce the height of the session tile based on the content?

a) To reduce the height of the session tile based on the content, please try the following:

1) Backup before applying fixes we won’t be able to help in case of data loss

2) Please add the following code to the end of the style-sheet in the theme

section.fullwidth .carousel-sessions .session.item{min-height:inherit !important;}

3) Save the file.

 

b) To show the first paragraph of the session content(a part of the session content), please try the following:

1) Please back-up the files prior to any changes.

2) Open components/templates/widgets/ef_schedule.php

3) Add the following code to the top of the above file:

<?php

function getFirstPara($string){

$string = substr($string,0, strpos($string, “</p>”)+4);

$string = str_replace(“<p>”, “”, str_replace(“<p/>”, “”, $string));

return $string;

}

?>

4) Around line number 70, you can find:

echo $session->post_content;

5) Please replace the above code to

echo getFirstPara($session->post_content);

6) Save the file.

Please note the changed files, if you are editing parent theme directly. You will lose the changed files when you upgrade the theme.

 

Or, please have a look at Vertoh Theme Documentation and Theme Guide

Was this article helpful to you? Yes No