Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1095782
    Ony
    Participant

    Oh. The more you know…

    If I were to have my portfolio page to feature these in this order how would I do so? Would be beneficial to know for the future so I don’t have to bug the X support staff and can start playing around on my own :).

    Order:
    Custom Headline: ‘Book a Table’
    Gap: ’25px’
    Raw Content: AcuityScheduling code
    Portfolio Section

    Thanks so much for the continually amazing support!

    #1096070
    Ony
    Participant
    This reply has been marked as private.
    #1096227
    Rue Nel
    Moderator

    Hey Ony,

    If you want to display a different order, simple update the code and have it look like this:

    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/TEMPLATE-LAYOUT-PORTFOLIO.PHP
    // -----------------------------------------------------------------------------
    // Portfolio page output for Ethos.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-container max width main">
        <div class="offset cf">
          <div class="<?php x_main_content_class(); ?>" role="main">
    
            <?php x_portfolio_filters(); ?>
    
            <?php echo do_shortcode('[custom_headline level="h2" looks_like="h3" accent="false"]Book a Table[/custom_headline]'); ?>
    
            <?php echo do_shortcode('[gap size="25px"]'); ?>
    
            <?php echo do_shortcode('[x_raw_content]<iframe src="https://app.acuityscheduling.com/schedule.php?owner=12572942" width="100%" height="800" frameBorder="0"></iframe><script src="https://d3gxy7nm8y4yjr.cloudfront.net/js/embed.js" type="text/javascript"></script>[/x_raw_content]'); ?>
    
            <?php x_get_view( 'global', '_portfolio' ); ?>
            
    
          </div>
    
          <?php get_sidebar(); ?>
    
        </div>
      </div>
    
    <?php get_footer(); ?>

    And I am not sure if I understand the second question. Could please clarify? Maybe you can send us some screenshots to illustrate what happen?

    While logging in to your cpanel, I found out that you have renamed the x theme parent folder to zoo. This action would result to the following issue:
    – you will have a difficulty in updating the theme.
    – Cornerstone will ask you to validate because it will look for the x folder and since it doesn’t exist, it can never be validated unless you revert back the name of the default parent folder

    Hope this helps.

    #1096245
    Ony
    Participant

    Thanks so much!

    I found a fix to the second issue already, but thank you :).

    One last question, whats the code for a #fff 1px line? Would love to add that below book a table, and would love to have the Book a Table part centered.

    And would also like to add a text box underneath it as well, centered. I assume I can use shortcodes inside the .php file?

    Thank you guys so much for the continued support!

    #1096449
    Friech
    Moderator

    Hi There,

    You can use this shrotcode to output a line:

    [x_line style="border-top-color: #fff;border-top-width: 1px;"]

    Yes, you can call a shortcode inside a .php file with the do_shortcode function.

    e.g.
    <?php echo do_shortcode( 'PUT YOUR SHORTCODE HERE' ); ?>

    Hope it helps, Cheers!

    #1096551
    Ony
    Participant

    Works great! Thanks guys.

    One last question here, how can I make the portfolio items marginless, so there is no whitespace in the background.

    Best,
    Ony

    #1096552
    Ony
    Participant
    This reply has been marked as private.
    #1096556
    Friech
    Moderator

    Hi There,

    You can add this under Custom > CSS in the Customizer.

    
    .x-iso-container.cols-3>.hentry {
    	padding: 0 !important;
    }

    Hope it helps, Cheers!

    #1096620
    Ony
    Participant
    This reply has been marked as private.
    #1096653
    Rue Nel
    Moderator

    Hey Ony,

    Thanks for updating this thread! You need to edit each of the portfolio item and find the Portfolio Item Settings. This is where you can assign the parent portfolio page for this portfolio item. This will be used in various places throughout the theme such as your breadcrumbs. If “Default” is selected then the first page with the “Layout – Portfolio” template assigned to it will be used.

    Please see this screenshot: http://prntscr.com/bvl1e9

    This will only work if you have created a Portfolio Page. If you haven’t created yet, you must create the page so that you can assign it as the parent portfolio page.

    Hope this make sense.

    #1096693
    Ony
    Participant

    Hey Rue,

    I actually had to duplicate and rename the blank no container footer and header php files to the template-layout-portfolio file then by selecting template-layout portfolio I was able to set up the proper link for those little buttons. (It was linking to the wrong Events page initially, and in your screenshot.)

    Thanks however, as your help made me think of an alternate way to do so and it worked :).

    Cheers!,
    Ony

    #1096748
    Rue Nel
    Moderator

    You’re always welcome! We are just glad we were able to help you out.
    If you need anything else we can help you with, don’t hesitate to open another thread.

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