-
AuthorPosts
-
May 29, 2018 at 10:56 am #963559
Dear Enfold Team,
I’ve set up a Website with the Enfold Theme.
I customized ist so I can make a line break in the Blog Grid Layout.
But in the the Archive Site it’s not working.
Do you have any ideas?With best regards.
Markus- This topic was modified 6 years, 6 months ago by druckhoher.
May 29, 2018 at 6:20 pm #963850Hey druckhoher,
The pages look identical to me. They both appear to have grid spaces. If you can screenshot exactly what you mean, we will look into this further.
Best regards,
Jordan ShannonMay 30, 2018 at 8:13 am #964050Hey Jordan,
I’d like to have the same layout on the archive site (http://umzug.kamhuber.at/2018/02/) like on this side: http://umzug.kamhuber.at/kondolieren/.
The Grid Layout is perfect, but the line break in the excerpt is missing.
I can’t find my mistake.with best regards.
Markus
June 1, 2018 at 12:26 pm #965256Hi,
Thanks for the update. How are the line breaks enabled? Which files did you modify? You may need to modify the archive.php file and set the “contents” parameter of the avia_post_slider object manually.
$atts = array( 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 3, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() ) ); $blog = new avia_post_slider($atts);
Best regards,
IsmaelJune 7, 2018 at 11:02 am #968505Hi Ismael,
I just edited the functions.php file
here is the code:
function allow_excerpt_linebreak(){ ?> <script> $(document).ready(function() { $(".entry-content").html(function(index, currentHtml) { return currentHtml.replace('String to replace', '</br> replaced String'); }); }); </script> <?php } add_action('wp_head', 'allow_excerpt_linebreak');
Is there on the archive page a different class?
I can’t find my mistake.
thanksMarkus
June 9, 2018 at 5:17 pm #970464Hi Markus,
There is an error in JavaScript but on the grid page the script works and on the archive page it does not. The class is the same.
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.