Forum Replies Created
-
AuthorPosts
-
LeaChristineMember
I figured it out, thanks.
LeaChristineMemberI just cut and paste the
<?php genesis (); ?>
to the very end of my about.php, so right after the
<?php get_footer(); ?>
but now the slider and entry content is under the footer.. sorry, I guess I'm not understanding the exact way I should format the code so that the Genesis loop is included with ACF integrated into it?
LeaChristineMemberOk, so this is really weird, but I added
<?php genesis (); ?>
right after the
<?php /** * Template Name: About Page * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ get_header(); ?>
in my about.php, and now the slider is showing up where I want it to, but all the ACF content that was located in my entry-content is now sitting below the footer??
LeaChristineMemberIt is towards the very bottom, but I will just paste the entire thing here:
<?php //* Start the engine include_once( get_template_directory() . '/lib/init.php' ); //* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' ); define( 'CHILD_THEME_VERSION', '2.1.2' ); //* Enqueue Google Fonts add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' ); function genesis_sample_google_fonts() { wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,400,700', array(), CHILD_THEME_VERSION ); } //* Add HTML5 markup structure add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); //* Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 ); //* Add section above posts on homepage genesis_register_sidebar( array( 'id' => 'menu-detail', 'name' => 'Menu Detail', 'description' => 'This is the detail on the edges of the menu bar.', ) ); add_action('genesis_before_content', 'menu_detail', 13 ); function menu_detail() { echo '<div class="menu-detail">'; dynamic_sidebar( 'menu-detail' ); echo '</div>'; } //* Add function for header image function sample_header_image() { ?><div class="header-image"> <a href="http://www.peekingbetweenthepages.com/"><img src="http://www.peekingbetweenthepages.com/wp-content/uploads/2015/05/HEADER2.png" /></a> </div> <?php } add_action( 'genesis_before_content', 'sample_header_image'); //* Reposition the primary navigation menu remove_action( 'genesis_after_header', 'genesis_do_nav' ); add_action( 'genesis_before_content', 'genesis_do_nav', 12 ); //* Customize the post info function add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { if ( !is_page() ) { $post_info = '[post_date]'; return $post_info; }} //* Move the post date function to above post title add_action( 'genesis_entry_footer', 'my_post_info', 5 ); add_filter( 'my_post_info', 'do_shortcode', 20 ); function my_post_info() { if ( 'page' === get_post_type() ) return; $output = genesis_markup( array( 'html5' => '<p %s>', 'xhtml' => '<div class="my-post-info">', 'context' => 'entry-meta-before-content', 'echo' => false, ) ); $output .= apply_filters( 'my_post_info', 'By [post_author_posts_link] [post_comments] [post_edit]' ); $output .= genesis_html5() ? '</p>' : '</div>'; echo $output; } //* Add Footer creds add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' ); function sp_footer_creds_text() { echo '<div class="creds"><p>'; echo 'Copyright © '; echo date('Y'); echo ' · <a href="#">Peeking Between The Pages</a>'; echo ' · Theme Design by<a href="http://www.leachristinedesigns.com/" target="_blank"> Lea Christine Designs</a>'; echo '</p></div>'; } //* Register scroll top widget area genesis_register_sidebar( array( 'id' => 'scroll-top', 'name' => __( 'Scroll To Top' ), 'description' => __( 'This is the button to scroll to top of the page' ), ) ); //* Hook social widget area before site footer add_action( 'genesis_after_content_sidebar_wrap', 'scroll_top', 9); function scroll_top() { genesis_widget_area( 'scroll-top', array( 'before' => '<div class="scroll-top">', 'after' => '</div>', ) ); } //* Register social footer widget area genesis_register_sidebar( array( 'id' => 'social-footer', 'name' => __( 'Social Footer', 'bg' ), 'description' => __( 'This is the social footer widget area.', 'bg' ), ) ); //* Hook social widget area before site footer add_action( 'genesis_footer', 'bg_social_footer_widget_area', 6 ); function bg_social_footer_widget_area() { genesis_widget_area( 'social-footer', array( 'before' => '<div class="social-footer">', 'after' => '</div>', ) ); } //* Modify the comment link text in comments add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter( $post_info ) { return '[post_comments zero="Leave a Comment" one="1 Comment - Leave one" more="% Comments - Leave one"]'; } //* Display a custom favicon add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' ); function sp_favicon_filter( $favicon_url ) { return 'http://www.peekingbetweenthepages.com/wp-content/uploads/2015/06/Favicon.png'; }
LeaChristineMemberNevermind I figured it out-- is there any way to delete forum posts?
LeaChristineMemberThe odd thing is it's only ignoring part of my queries-- I resized the width of my .content and that worked just fine...
LeaChristineMemberHi Mairagall-- so in addition to what was posted above, I had to also change the original post info--
//* Customize the post info function add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { if ( !is_page() ) { $post_info = ' By [post_author_posts_link] [post_comments] [post_edit]'; return $post_info; }}
So, where you see $post_info = it used to also have the [post_date] listed, I just took that out and capitalized the "B" on "by." Hope this helps!
LeaChristineMemberThanks so much, this worked perfectly! 🙂
LeaChristineMemberThank you so much, this worked perfect! I appreciate your help! 🙂
LeaChristineMemberThanks, this is a bit closer to what I'm trying to do... is there any way you know of to only move the post date above the title, but not the author or comment links?
LeaChristineMemberThanks Brad, this sort of worked, but now it is showing the post meta both above and below the post title?
Also, do you know if there is a way to just move the post date above the header, but leave the "By author" and "comment" links where they are? I tried changing 'genesis_post_info' to 'genesis_post_date' but strangely enough, all this did was put the time above the title lol.
LeaChristineMemberThanks Lauren!
LeaChristineMemberI think I fixed it-- with this:
//* Add text section above posts
genesis_register_sidebar( array(
'id' => 'new-widget',
'name' => __( 'New Widget', 'domain' ),
'description' => __( 'Add Content Here', 'domain' ),
) );add_action( 'genesis_before_loop', 'your_widget' );
function your_widget() {
if ( is_front_page() && is_home() ) {
} elseif ( is_home() ) {
genesis_widget_area( 'new-widget', array(
'before' => '<div class="new-widget widget-area">',
'after' => '</div>',
) );}
}
LeaChristineMemberThat works!! Thanks so much! 😀
LeaChristineMemberI edited the typo before, but it still is not changing the post background, also tried adding important but nothing :/
article.post{
background-color: #F5F5F5 !important;
}LeaChristineMemberThanks, but it is still transparent :/
LeaChristineMemberSorry, disregard-- I didn't realize that once you post live it becomes a link not just text so have to edit the css again-- issue fixed.
LeaChristineMemberOops, sorry, I didn't realize I had to go to my widgets to actually add them-- my bad, thanks Davinder, everything is working now!! 🙂
LeaChristineMemberHi Davinder,
I tried this tutorial and added the code exactly as shown but there is still nothing appearing in my footer area? Did you say you were able to see something there? Nothing is showing up for me...
LeaChristineMemberWell, slider issues aside, none of the coding in my media queries is being accepted, even if I remove the min-width and do something like below-- I can't even get something basic like the background to change color...
@media only screen and (max-width: 768px) {body {
background-color: red;
}.site-footer {
float: center;
text-align: center;
margin-top: -60px !important;
}.footer-widgets {
float: center;
text-align: center;
margin-top: -60px !important;
}#rev_slider_3_1, #rev_slider_3_1_wrapper {
width: 600px !important;
height: auto;
margin-right: _15px !important;
float: center;
}.footer-widgets-3 {
padding-bottom: 100px;
}
}
@media only screen and (max-width: 500px) {#rev_slider_3_1, #rev_slider_3_1_wrapper {
width: 400px !important;
height: auto;
}.tp-leftarrow {
display: none !important;
}.tp-rightarrow {
display: none !important;
}}
-
AuthorPosts