Hi there,
On my site, oneworldtrek.wpengine.com, I’m utilizing the portfolio pages to highlight trips. Here is a example of a portfolio (trip) layout: http://oneworldtrek.wpengine.com/trekking-trips/annapurna-circuit-lodge-trek-nepal/
I’d like to put a Revolution Slider into the top of the portfolio item layout, in the place of where the featured image is, and to have it fill the width of the container above the content i.e"Annapurna Circuit Lodge Trek". The featured image currently doesn’t fill this area.
I have tried to add the php embed code for the slider but everywhere I put it just breaks and the page won’t load.
<?php putRevSlider("Portfolio") ?>
Below is what my content-portfolio.php file looks currently:
<?php
// =============================================================================
// VIEWS/INTEGRITY/CONTENT-PORTFOLIO.PHP
// -----------------------------------------------------------------------------
// Portfolio post output for Integrity.
// =============================================================================
$archive_share = x_get_option( 'x_integrity_portfolio_archive_post_sharing_enable' );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-featured">
<?php x_portfolio_item_featured_content(); ?>
</div>
<div class="entry-wrap cf">
<?php if ( x_is_portfolio_item() ) : ?>
<div class="entry-info">
<header class="trip_header">
<class="entry-title entry-title-portfolio"><?php the_title(); ?></class>
<?php x_integrity_entry_meta(); ?>
</header>
<?php x_get_view( 'global', '_content', 'the-content' ); ?>
</div>
<div class="entry-extra">
<a href="http://oneworldtrek.wpengine.com/contact-us">
<img src="http://oneworldtrek.wpengine.com/wp-content/uploads/2017/08/Mountain-Man_17.08.12-02.png" alt="One World Trekking" height="75" width="75"/>
<span class="text">
Contact Us To Request a Detailed Trip Itinerary
</span>
</a>
<?php x_portfolio_item_social(); ?>
<div class="trip_attributes_header">Trip Overview</div>
<div class="trip_attributes_header2">Information</div>
<div class="trip_attributes_body">
<?php the_field('trip_snippets'); ?></div>
<div class="trip_attributes_header2"><?php echo date("Y");?> Dates</div>
<div class="trip_attributes_body">
<?php the_field('group_departure_date'); ?></div>
<div class="trip_attributes_header2"><?php echo date("Y");?> Price</div>
<div class="trip_attributes_body">
<?php the_field('price'); ?></div>
<div class="trip_attributes_header2">Other Featured Trips</div>
</div>
</div>
</div>
<?php else : ?>
<header class="entry-header">
<h2 class="entry-title entry-title-portfolio">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
</h2>
<?php if ( $archive_share == '1' ) : ?>
<?php x_portfolio_item_social(); ?>
<?php endif; ?>
</header>
<?php endif; ?>
</div>
</article>
One last question, How could I control the size of this area?
Thanks for the help!
Marcus