Tagged: x
-
AuthorPosts
-
May 3, 2016 at 9:54 pm #911781
adagency2013ParticipantI have a Advanced Custom Field as well called “text1” I want it to show inside the main content, but right now it is showing below it (I need it under the post title and meta). http://e64.39f.myftpupload.com/2013/05/25/want-healthy-hair-try-our-hydration-treatment/
So I am editing wp-single.php inside framework>integrity>views. ( tried the edit content.php inside same folder but saw no output)<?php get_header(); ?> <div class="x-container max width offset"> <div class="<?php x_main_content_class(); ?>" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php x_get_view( 'integrity', 'content', get_post_format() ); ?> <h1><?php the_field('text1'); ?></h1> <?php x_get_view( 'global', '_comments-template' ); ?> <?php endwhile; ?> </div> <?php if ( $fullwidth != 'on' ) : ?> <?php get_sidebar(); ?> <?php endif; ?> </div>May 3, 2016 at 9:56 pm #911782
adagency2013ParticipantThis reply has been marked as private.May 4, 2016 at 4:39 am #912146
DarshanaModeratorHi there,
Thanks for writing in! Please copy the file _content-post-header.php which is located under “/x/framework/views/integrity/” into your child theme’s respective location “/x-child/framework/views/integrity/_content-post-header.php” and then replace it with the following code.
<?php // ============================================================================= // VIEWS/INTEGRITY/_CONTENT-POST-HEADER.PHP // ----------------------------------------------------------------------------- // Standard <header> output for various posts. // ============================================================================= ?> <header class="entry-header"> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h2 class="entry-title"> <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 endif; ?> <?php x_integrity_entry_meta(); ?> <?php if ( is_single() ) : ?> <h1><?php the_field('text1'); ?></h1> <?php endif; ?> </header>Hope that helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-911781 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
