Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter jamiebisson

    (@jamiebisson)

    yes only on the back end. I could not see it printed on the public page

    Thread Starter jamiebisson

    (@jamiebisson)

    OK – 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

    Thread Starter jamiebisson

    (@jamiebisson)

    OK silly me – worked it out… hide meta box option ticked – unticked now…. all good…DOH! sorry

    Thread Starter jamiebisson

    (@jamiebisson)

    yes, unfortunately I do not know HTML that well & do not know php at all….. anyone with any suggestions?

    Thread Starter jamiebisson

    (@jamiebisson)

    version 1.4

    Thread Starter jamiebisson

    (@jamiebisson)

    Oh, sorry try the Stork theme

    Thread Starter jamiebisson

    (@jamiebisson)

    Well 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?

    Thread Starter jamiebisson

    (@jamiebisson)

    well 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() ?>

    Thread Starter jamiebisson

    (@jamiebisson)

    nope, 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.

    Thread Starter jamiebisson

    (@jamiebisson)

    and then the rest of the script?

    Thread Starter jamiebisson

    (@jamiebisson)

    I 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 tried page-id-522 .entry-title .h1 in the css and still nothing.

    Thread Starter jamiebisson

    (@jamiebisson)

    OK 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

    Thread Starter jamiebisson

    (@jamiebisson)

    I 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???

    Thread Starter jamiebisson

    (@jamiebisson)

    This 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>
    Thread Starter jamiebisson

    (@jamiebisson)

    so 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

Viewing 15 replies - 1 through 15 (of 23 total)