Tagged: x
-
AuthorPosts
-
March 25, 2016 at 12:24 pm #852599
Hi,
Integrity 1 –
I would like to know if there is a way to make every page have the exact same layout and style as the blog page which includes a title and subtitle.
How to implement this request for all pages that utilize “layout – fullwidth” AND “layout – portfolio” (which does not include a subtitle)?I found a thread that modifies the _landmark-header.php to add a subtitle to the title on the portfolio page, then I added the following markup after the <h1></h1>:
<p class="p-landmark-sub"><span>Testing Our Portfolio Page Subtitle</span></p>
This works for the Portfolio page. But now I need for any page that uses the “layout-fullwidth” template. Also need the correct <h1> styling.
Thanks,
Tony
March 25, 2016 at 5:16 pm #852890Hi Tony,
Thanks for posting in.
Would you mind providing the reference URLs? I need to know what’s your current styling and layout.
Thanks!
March 25, 2016 at 8:53 pm #853070http://www.miidear.com/wp/
Home will not have a title, but everything else will. Portfolio and Blog look great, but any additional pages need to be the same as those… ie. like the contact page – font size is not the same and there is no sub-heading / sub-title. There will be additional pages as well.Tks
March 26, 2016 at 12:49 am #853181Hello There,
You need to edit the page template. Since you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?php // ============================================================================= // VIEWS/INTEGRITY/CONTENT-PAGE.PHP // ----------------------------------------------------------------------------- // Standard page output for Integrity. // ============================================================================= $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true ); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-featured"> <?php x_featured_image(); ?> </div> <div class="entry-wrap"> <?php if ( is_singular() ) : ?> <?php if ( $disable_page_title != 'on' ) : ?> <header class="entry-header"> <h1 class="entry-title h-landmark"><?php the_title(); ?></h1> </header> <?php endif; ?> <?php else : ?> <header class="entry-header"> <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> </header> <?php endif; ?> <?php x_get_view( 'global', '_content' ); ?> </div> </article>
3] Save the file named as
content-page.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/integrity/
And then you also need to please add the following css code in the customizer, Appearance > Customize > Custom > CSS or insert this code in your child theme’s style.css (if you are using a child theme)
.site .entry-title.h-landmark { font-size: 400%; }
Hope this helps.
-
AuthorPosts