Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1277437
    Rahul
    Moderator

    Glad to hear it!

    About the issue, your site loads perfectly fine here. Could you please double check it?

    Thanks for understanding!

    #1277707
    JfantasyBooks
    Participant

    No, I removed the shortcode because it was significantly slowing the site. I can bring it back for you to see.

    #1277709
    JfantasyBooks
    Participant

    Edit: I had to remove it again. My CPU usage went through the roof with the ‘add shortcode’ and My physical Memory as well.

    Is there a way of doing it through the functions.php on the x-child theme? I’m wondering if that would help. Any ideas on how to do that instead of going through the …views/ethos/ path?

    My code in the content.php file within the x-child theme:

    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Standard post output for Ethos.
    // =============================================================================
    
    $is_index_featured_layout = get_post_meta( get_the_ID(), '_x_ethos_index_featured_post_layout',  true ) == 'on' && ! is_single();
    
       $get_array2    = novel_identify();
       $get_texti     = $get_array2['text'];
       $get_classi    = $get_array2['class'];
       $get_linki      = $get_array2['link'];
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <?php if ( $is_index_featured_layout ) : ?>
        <?php x_ethos_featured_index(); ?>
      <?php else : ?>
        <?php if ( has_post_thumbnail() ) : ?>
          <div class="entry-featured">
          <?php if ( is_home() ) : ?>
        <?php echo do_shortcode('[x_button type="flat" shape="rounded" size="mini" block="true" circle="false" icon_only="false" href="#" title="" target="" info="none" info_place="top" info_trigger="hover" info_content="" class="'.$get_classi .'"]'.$get_texti.'[/x_button]'); ?>
    <?php endif; ?>
            <?php if ( ! is_single() ) : ?>
              <?php x_ethos_featured_index(); ?>
            <?php else : ?>
              <?php x_featured_image(); ?>
            <?php endif; ?>
          </div>
        <?php endif; ?>
        <div class="entry-wrap">
          <?php x_get_view( 'ethos', '_content', 'post-header' ); ?>
          <?php x_get_view( 'global', '_content' ); ?>
        </div>
      <?php endif; ?>
    </article>
    
    #1278077
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating us in! Regretfully there is no other way to do it. You can not simply add a function in the child theme since there is no hook or filter above the featured image. The only way to display it is to insert the code in the content.php file.

    As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.

    Thank you for your understanding.

    #1278192
    JfantasyBooks
    Participant

    I understand. Thanks.

    #1278365
    JfantasyBooks
    Participant

    The site seems to be running fine now with that added. I wonder what happened. Anyway. Thank You!

    #1278375
    Rad
    Moderator

    You’re welcome!

  • <script> jQuery(function($){ $("#no-reply-1276924 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>