Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #242402

    unjourjirai
    Participant

    Actually I said that your answer did not work ^^

    #242407

    Rue Nel
    Moderator

    Hello Again,

    We apologized it the code didn’t worked out for you.

    Upon rigorous inspections of your page we found out the the code works in our end. It’s just that you added the code in the wrong place. Please see the screenshot http://prntscr.com/6prn2p

    Please try again adding following CSS under Appearance > Customize > Custom > CSS:

    .category .x-main.right {
      width: 100%;
    }

    Please let us know if this works out for you.

    #242435

    unjourjirai
    Participant

    Oh thank you !

    Actually I made a mistake as i put the code into the Javascript emplacement ^^
    Thank you for your support again 🙂

    #242439

    Rue Nel
    Moderator

    No worries.
    It’s good to know we were able to help you.

    #242636

    unjourjirai
    Participant

    I have another issue :

    I’d like to include a shortcode in the topbar.

    So here is the code os topbar.php:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_TOPBAR.PHP
    // -----------------------------------------------------------------------------
    // Includes topbar output.
    // =============================================================================
    
    ?>
    
    <?php if ( x_get_option( 'x_topbar_display', '' ) == '1' ) : ?>
    
      <div class="x-topbar">
        <div class="x-topbar-inner x-container max width">
    <img src="http://unjourjirai.fr/wp-content/uploads/2013/08/fondraysun2-e1427977652167.jpg" align="left" style="padding-top:30px;">
    <h3 style="color:white;" align="center"> Votre destination</h3><br/>
    
    /* the php code including he shortcode */
    <?php echo do_shortcode("[wpgmza id="2"]"); ?>
    
          <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?>
          <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p>
          <?php endif; ?>
          <?php x_social_global(); ?>
        </div>
      </div>
    
    <?php endif; ?>		

    But here i get a parse error !

    Parse error: syntax error, unexpected T_LNUMBER in /public_html/wp-content/themes/x/framework/views/global/_topbar.php on line 17

    Maybe you can help me with that ! 🙂

    #242681

    unjourjirai
    Participant

    I’ve found the way to fix it !

    #242698

    Nico
    Moderator

    Glad to hear that!

    Let us know if you need anything else.

    Have a great day and Happy Easter!

    Thanks.