figure2
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Need to add a Metaslider slideshow to the headerThanks Leo, the slideshow should go inside the div with the class of “site-branding,” above the .site-description H3 headline, also inside .site-branding.
The .site-branding div is between the logo and the header widget. I have things moved around and reconfigured in my child theme.
In other words, it should look like this, once I add the necessary CSS:
Forum: Themes and Templates
In reply to: [Appointment] Where is my site title and tag line?Sorry, neglected to provide the link: https://kornbluth-consulting.markhannondesign.com
Forum: Plugins
In reply to: [One Click Order Re-Order] Discounts with reorder?Thanks cedcommerce. I’ll let my client know.
Forum: Fixing WordPress
In reply to: wp_enqueue_script() $ver parameter problemActually no. I recreated it since the laptop the actual code was on was not powered up. Sorry for the confusion.
Forum: Fixing WordPress
In reply to: wp_enqueue_script() $ver parameter problemMissing quotes around the $ver parameter and missing “,” following it. Now I feel stupid.
But it just goes to show when you are staring at this code for long enough these errors get sneaky and hide in plain sight.
Thanks for the troubleshooting tip.
Forum: Fixing WordPress
In reply to: wp_enqueue_script() $ver parameter problemThanks Ross, I give that a try.
Forum: Fixing WordPress
In reply to: wp_enqueue_script() $ver parameter problemSorry about the bad link. I accidentally added the post tags to the “The page I need help with” field.
Forum: Localhost Installs
In reply to: Weird localhost plugin problem I can’t seem to duplicateThanks, by the way.
Forum: Localhost Installs
In reply to: Weird localhost plugin problem I can’t seem to duplicateActually you set me on the right track. I was able to keep the name of the plugin “Portfolio” inside the opening comments in the PHP file as long as I renamed the php file itself from “portfolio.php” to “mhd-portfolio.php.”
The incorrect Plugin URI link is gone.
Forum: Developing with WordPress
In reply to: Adding additional attributes to the tagThanks! that worked.
Turns out there are js errors that the console found but none with my code. Don’t even know there these files are.
Forum: Fixing WordPress
In reply to: Need help with add_image_size()One additional note: I installed and ran the “Regenerate Thumbnails” plugin. Problem persisted.
Forum: Developing with WordPress
In reply to: Need some help with dropdown menu behaviorWow! Such a simple thing. Worked like a charm. Thanks so much!
Doesn’t appear to be.
content-single.php:
<?php /** * @package Generate */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemprop="blogPost" itemtype="http://schema.org/BlogPosting" itemscope="itemscope"> <div class="inside-article"> <header class="entry-header"> <h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1> <div class="entry-meta"> <?php generate_posted_on(); ?> </div> <section class="page-header-image-single"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'medium' ); } ?> </section> <!-- .entry-meta --> </header><!-- .entry-header --> <?php do_action( 'generate_after_entry_header'); ?> <div class="entry-content" itemprop="text"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'generate' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <?php do_action( 'generate_after_entry_content'); ?> <?php do_action( 'generate_after_content'); ?> </div><!-- .inside-article --> </article><!-- #post-## -->single.php:
<?php /** * The Template for displaying all single posts. * * @package Generate */ get_header('xtc'); ?> <div id="primary" <?php generate_content_class();?> itemprop="mainContentOfPage"> <main id="main" <?php generate_main_class(); ?> itemtype="http://schema.org/Blog" itemscope="itemscope" role="main"> <?php do_action('generate_before_main_content'); ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || '0' != get_comments_number() ) : ?> <div class="comments-area"> <?php comments_template(); ?> </div> <?php endif; ?> <?php endwhile; // end of the loop. ?> <?php do_action('generate_after_main_content'); ?> </main><!-- #main --> </div><!-- #primary --> <?php do_action('generate_sidebars'); get_footer();Well it sort of worked. It got rid of both meta slugs rather than just keeping one. Is there any way to target the duplicate slug while leaving the first one intact?
Tom, I took a 2nd look through all of my template files and found at least 2 other instances of the footer containing the
generate_entry_meta()function. I removed all instances which still didn’t get rid of the duplicate meta slug.My functions.php file only contains a copy of the construct logo function from template-tags.php because my client wanted his phone number below the logo.
Here is a screenshot of my theme file structure. As I mentioned, I looked through all of the template files to try and spot any problems with no luck. If you want to have a look yourself, I zipped up all the PHP files here.