Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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, 5 months ago by druckhoher.
    #963850

    Hey 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 Shannon

    #964050

    Hey 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

    #965256

    Hi,

    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,
    Ismael

    #968505

    Hi 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.
    thanks

    Markus

    #970464

    Hi 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

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