jamiebisson
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Warning: preg_match():yes only on the back end. I could not see it printed on the public page
Forum: Plugins
In reply to: [The Events Calendar] Not showing next monthOK – weird….. was going to deactivate plugins, but thought I would just check the pages again & it is all fixed all of a sudden. Not sure why, but hey – it works as it should now…..
Lost there, but glad to have it working as it should
Forum: Plugins
In reply to: [Yoast SEO] Cannot see WordPress SEO by Yoast in pagesOK silly me – worked it out… hide meta box option ticked – unticked now…. all good…DOH! sorry
Forum: Themes and Templates
In reply to: [Stork] Add sidebaryes, unfortunately I do not know HTML that well & do not know php at all….. anyone with any suggestions?
Forum: Themes and Templates
In reply to: [Stork] Add sidebarversion 1.4
Forum: Themes and Templates
In reply to: [Stork] Add sidebarOh, sorry try the Stork theme
Forum: Themes and Templates
In reply to: Help with child theme setupWell the php are changes that are made to my theme files. Do you have any suggestions to changes i need to make to allow these changes to come across when I update the theme files.
I have the following structure in the folders:
-wp-content --themes ---twentytwelve ---twentytwelve-child
So the code I have entered is not working…. anyone got any help on this one please?
Forum: Fixing WordPress
In reply to: Change entry-title on home page to h2 and keep h1 on otherswell trial and error I have worked it out… I needed to put this in content-page.php
After all, it is a page i am editing, not a post
The page I was having trouble with adjusting was the front page on the website, but this appears to have fixed it.
Thanks for your help deepbevel, much appreciated!!
<?php if (is_front_page() ) : ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php else : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php endif; // is_front_page() ?>
Forum: Fixing WordPress
In reply to: Change entry-title on home page to h2 and keep h1 on othersnope, that does not work. I tried:
<?php if (is_home() ) : ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php else : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php endif; // is_home() ?>
i put it in content.php, is that the right place to try it?
Thanks for your help.
Forum: Fixing WordPress
In reply to: Change entry-title on home page to h2 and keep h1 on othersand then the rest of the script?
Forum: Fixing WordPress
In reply to: Change entry-title on home page to h2 and keep h1 on othersI tried this code, but nothing happened. Am i doing something wrong?
<?php if (is_front_page() ) : ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php else : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php endif; // is_front_page() ?>
I have also tried
.home .entry-title .h1
in the css and nothing.
I also triedpage-id-522 .entry-title .h1
in the css and still nothing.Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Change blog name from H1 to H3OK I seem to have fixed it, with the following code in my header.php file
<header id="masthead" class="site-header" role="banner"> <hgroup> <?php if (is_front_page()) { ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> <?php } else { ?> <h3 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h3> <h4 class="site-description"><?php bloginfo( 'description' ); ?></h4> <?php } ?> </hgroup>
However I now want to make the text size of the h3 and h4 in the site title and site description to the same size and appearance of h1 and h2.
So in summary for site title (h3) i want the text to look like h1 and in site description (h4) i want the text to look like h2
Any thoughts?
Jamie
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Change blog name from H1 to H3I have done a bit more searching and came across this script… will it work for pages and do I put it in my style.css? If so, what lines do i need to delete in my style.css?
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; $c=0;?>
<?php while (have_posts()) : the_post(); ?><?php $c++;
if( $c == 1) :?>
<h1>The first post on the main index page</h1>
<?php the_title(); ?>
<?php the_excerpt(); ?><?php else :?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endif;?><?php endwhile; ?>
<!– page nav –>
<?php endif; ?>`
———————————————
I also came across this script:
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; $c=0;?>
<?php while (have_posts()) : the_post(); ?><?php $c++;
if( !$paged && $c == 1) :?>
<h1>The first post on the main index page</h1>
<?php the_title(); ?>
<?php the_excerpt(); ?><?php else :?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endif;?><?php endwhile; ?>
// page nav
<?php endif; ?>Any suggestions people….. anyone???
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Change blog name from H1 to H3This is in my header.php i am assuming i need to change something here to allow h1 on home page and h3 on normal pages, but i am not sure what to enter.
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<body <?php body_class(); ?>> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <hgroup> <h1 class="site-title"><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </hgroup>
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Change blog name from H1 to H3so i am trying to change the page blog name, so i suppose i am to use page.php, however i only have the following code in this php file:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
—————————————–
any ideas there?
Jamie