Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1193222
    jvasquez3
    Participant

    Hello,

    I’m using the integrity stack and am trying to set up the blog page & the post page. I want it to look at least similar in format to: http://demo.theme.co/integrity-1/5-reasons-you-need-the-x-theme/

    Here’s my blog page, and my post page…please Help

    http://www.strengthpraise.com/blog/
    http://www.strengthpraise.com/hello-world/

    #1193489
    Lely
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? I can see you have set Sidebar on the Customizer. But then the size seems not right. To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1193979
    jvasquez3
    Participant
    This reply has been marked as private.
    #1194158
    Rupok
    Member

    Hi there,

    Thanks for writing back. You have set 2500px max-width and 100% width for the container and set 97% for the content while only 3% for the sidebar. So it looks weird.

    All you need to set correct widths for them from Customize > Layout and Design.

    Hope this helps.

    #1194641
    jvasquez3
    Participant

    Ok, I made the changes, but the background of the homepage/pages is the Same as the background of the blog….how do I make the background different for the BLOG and the Blog Posts?? Thanks for your help.

    #1194977
    Rad
    Moderator

    Hi there,

    Please add this code to your child theme’s functions.php

    function x_customizer_output_js_custom() {
    
      $x_custom_scripts                     = x_get_option( 'x_custom_scripts' );
      $entry_id                             = is_home() ? get_option( 'page_for_posts' ) : get_queried_object_id();
      $x_entry_bg_image_full                = get_post_meta( $entry_id, '_x_entry_bg_image_full', true );
      $x_entry_bg_image_full_fade           = get_post_meta( $entry_id, '_x_entry_bg_image_full_fade', true );
      $x_entry_bg_image_full_duration       = get_post_meta( $entry_id, '_x_entry_bg_image_full_duration', true );
      $x_design_bg_image_full               = x_get_option( 'x_design_bg_image_full' );
      $x_design_bg_image_full_fade          = x_get_option( 'x_design_bg_image_full_fade' );
    
      ?>
    
      <?php if ( $x_custom_scripts ) : ?>
    
        <script id="x-customizer-js">
          <?php echo $x_custom_scripts; ?>
        </script>
    
      <?php endif; ?>
    
      <?php if ( $x_entry_bg_image_full ) : ?>
    
        <?php
        $page_bg_images_output = '';
        $page_bg_images        = explode( ',', $x_entry_bg_image_full );
        foreach ( $page_bg_images as $page_bg_image ) {
          $page_bg_images_output .= '"' . $page_bg_image . '", ';
        }
        $page_bg_images_output = trim( $page_bg_images_output, ', ' );
        ?>
    
        <script>jQuery.backstretch([<?php echo $page_bg_images_output; ?>], {duration: <?php echo $x_entry_bg_image_full_duration; ?>, fade: <?php echo $x_entry_bg_image_full_fade; ?>});</script>
    
      <?php elseif ( $x_design_bg_image_full ) : ?>
    
        <script>jQuery.backstretch(['<?php echo x_make_protocol_relative( $x_design_bg_image_full ); ?>'], {fade: <?php echo $x_design_bg_image_full_fade; ?>});</script>
    
      <?php endif;
    
    }
    
    add_action('wp_head', 'reset_backtretch_background', 9999);
    
    function reset_backtretch_background () {
    
    remove_action( 'wp_footer', 'x_customizer_output_js', 9999, 0 );
    add_action( 'wp_footer', 'x_customizer_output_js_custom', 9999, 0 );
    
    }

    Cheers!

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