Where to add code to make it work
-
Hi Ankit, I have been trying to get the DFI plugin to work on our development website with no luck. I contacted the author of the theme and he said I need to change the intro-full.php file to make it work.
The contents of that file are included below. Can you please give me an idea of what to change so I can get outstanding plugin working?
The site is here: https://guthriecentersite-dev.springbranchisd.com/
Thanks for the help.
Joe<?php
/**
* The template part for displaying a full width intro.
*
* @package clearnews
*/global $post;
$post = get_post( get_theme_mod( ‘intro_page’ ) );
setup_postdata( $post );$style = ”;
if ( has_post_thumbnail() ) {
$thumbnail_url = wp_get_attachment_url( get_post_thumbnail_id() );
$style = ‘ style=”background-image: url(\” . esc_url( $thumbnail_url ) . ‘\’)”‘;
}
?><section id=”intro” class=”marquee”<?php echo $style; ?>>
<div class=”container”>
<div class=”marquee-body”>
<header class=”entry-header”>
<?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?>
</header><!– .entry-header –><div class=”entry-content”>
<?php the_content(); ?>
<?php edit_post_link( __( ‘Edit’, ‘clearnews’ ), ‘<p>’, ‘</p>’ ); ?>
</div>
</div>
</div></section>
<?php wp_reset_postdata(); ?>
- The topic ‘Where to add code to make it work’ is closed to new replies.