Footer Text won’t show
-
Hello,
I recently moved my site to a new domain, and the Footer Text plugin has stopped working and I’m a bit lost on how to get it going again. I need it to show with black background and white font, but I can’t figure out where to put the code snippet, and if I’m missing some of the code.
I’ve tried to put it at the bottom of my main page, but I can’t get it to look right:
<?php /** * Template Name: Full Width Image and Gallery Posts * Descriptions: Displays all image and gallery post formats. * * @package Portfolio Press */ get_header(); ?> <?php // This section is the modification you added to get the content of the actual post to include it below. if (have_posts()) { while (have_posts()) { the_post(); $content = apply_filters( 'the_content', get_the_content() ); } } // End of modification for content. ?> <?php if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } elseif ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); } else { $paged = 1; } $args = array( 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-image', 'post-format-gallery' ), ) ), 'paged' => $paged ); $portfolio = new WP_Query( $args ); ?> <div id="primary"> <div id="content" role="main"> <!-- #begin mod for actual page content --> <div class="entry-content clearfix"><?php echo $content; ?></div> <!-- #end mod for page content --> <?php if ( $portfolio->have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( $portfolio->have_posts() ) : $portfolio->the_post(); ?> <?php // If no image is set, we'll use a fallback image if ( has_post_thumbnail() ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'portfolio-thumbnail', true ); $image = $image[0]; $class = "image-thumbnail"; } else { $format = get_post_format(); $image = get_template_directory_uri() . '/images/image.svg'; $formats = array( 'gallery', 'image', 'video' ); if ( in_array( $format, $formats ) ) { $image = get_template_directory_uri() . '/images/' . $format . '.svg'; } $class = 'fallback-thumbnail'; } // If password is required, always show lock image if ( post_password_required() ) { $image = get_template_directory_uri() . '/images/lock.svg'; $class = 'fallback-thumbnail'; } ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <a href="<?php the_permalink() ?>" rel="bookmark" class="thumb"> <h3><?php the_title() ?></h3> <img class="<?php echo $class; ?>" src="<?php echo esc_url( $image ); ?>" width="360" height="260"> </a> </div><!-- .entry-content --> </article><!-- #post-<?php the_ID(); ?> --> <?php endwhile; ?> <?php portfoliopress_paging_nav( $portfolio ); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div><!-- #content --> </div><!-- #primary --> <?php wp_reset_query(); ?> <?php get_footer(); ?>
I’ve also copied my footer.php to my child theme folder, but I’m not sure where to put the code, and if it’s supposed to be in footer.php or my main page? Heres the code for my footer.php as well:
<?php /** * Footer template * * @package Portfolio Press */ ?> </div> </div><!-- #main --> </div><!-- #page --> <footer id="colophon"> <div class="col-width"> <?php if ( is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4') ) : ?> <div id="footer-widgets"> <?php $i = 0; while ( $i <= 4 ) : $i++; ?> <?php if ( is_active_sidebar('footer-'.$i) ) { ?> <div class="block footer-widget-<?php echo $i; ?>"> <?php dynamic_sidebar('footer-'.$i); ?> </div> <?php } ?> <?php endwhile; ?> <div class="clear"></div> </div><!-- /#footer-widgets --> <?php endif; ?> <div id="site-generator"> <p> <?php if ( ! $footer = portfoliopress_get_option( 'footer_text', false ) ) { ?> <?php _e('Powered by', 'portfolio-press'); ?> <a href="https://www.ads-software.com/" title="<?php esc_attr_e( 'A Semantic Personal Publishing Platform', 'portfolio-press' ); ?>" rel="generator"><?php printf( __( 'WordPress', 'portfolio-press' ) ); ?></a> & <a href="https://wptheming.com/2010/07/portfolio-theme/"><?php _e('Portfolio', 'portfolio-press'); ?></a>. <?php } else { echo stripslashes($footer); } ?> </p> </div> </div> </footer><!-- #colophon --> <?php wp_footer(); ?> </body> </html>
Hope someone can help me out with this :).
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Footer Text won’t show’ is closed to new replies.