• Resolved alasdairsim

    (@alasdairsim)


    Hey

    No doubt this has been asked a million times and that there is a very simple answer however my knowledge of WordPress is still very basic.

    I use my site – alasdairsim.com – predominately as a basis for my freelance writing work however I have recently set up a blog on that site – alasdairsim.com/blog

    As you can see on my site, my name is on the left hand side – it is the Oulipo theme – I would however want this to change to something else for my blog as I will be pointing another domain to it. Is there a simple way that I can basically keep everything the same on the two pages in terms of layout etc… but change the page title – in this case where my name is? Apologies if this is an extremely simple question.

    Second; on my blog I use the <more> tag so that only the heading of the post and a brief description appears and then the reader can click the link the display the full post; I would like the date that the content was posted under each Blog post heading on the actual Blog page as opposed to just showing when the whole post is displayed – i.e. once the user clicks the ‘Read More’ link.

    Hopefully I have been descriptive enough here and no doubt there are two very simple answers to my questions however any help would be most appreciated.

    Alasdair

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter alasdairsim

    (@alasdairsim)

    In my first post I said that I wanted to “change the page title” for my blog page; I mean the title of the site that you enter in Settings > Site Title.

    Try editing header.php and changing:

    <h1 class="masthead"><a href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a></h1>

    to:

    <?php
    if( is_home() ) $my_sitename = 'Enter Blog site name here';
    else $my_sitename = get_bloginfo('name);?>
    <h1 class="masthead"><a href="<?php bloginfo('url');?>"><?php echo $my_sitename;?></a></h1>
    Thread Starter alasdairsim

    (@alasdairsim)

    Thank you so much esmi! Worked perfectly.

    Would you have any advice on my second problem? Apologies if this not the right section for it?

    Edit the relevant template file (which I think is index.php in this case) and try changing:

    <h2><a title="Permanent Link to <?php the_title();?>" rel="bookmark" href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>

    to:

    <h2><a title="Permanent Link to <?php the_title();?>" rel="bookmark" href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
    <p class="date"><?php the_time('F jS\, Y'); ?></p>
    Thread Starter alasdairsim

    (@alasdairsim)

    emsi; it didn’t work unfortunately.

    http://alasdairsim.com/blog/ still doesn’t show up any post date info unless you view the actual post.

    Thread Starter alasdairsim

    (@alasdairsim)

    The first fix worked initially now my site is just coming up as a blank white page with the

    <?php
    if( is_home() ) $my_sitename = 'Enter Blog site name here';
    else $my_sitename = get_bloginfo('name);?>
    <h1 class="masthead"><a href="<?php bloginfo('url');?>"><?php echo $my_sitename;?></a></h1>

    code there?

    http://pastebin.com/bU6dvHQE is a link to the code in my header.php

    If the code change worked initially, it wouldn’t throw an error later on. What else did you change?

    Thread Starter alasdairsim

    (@alasdairsim)

    I only thing I tried to change was the URL that the site title pointedtwo; so it pointed to the blog and not the static page.

    I’ve since uploaded all of the original theme files – header.php etc… and it still gives me a blank page when I insert the code.

    How exactly did you change the url(s)?

    Thread Starter alasdairsim

    (@alasdairsim)

    I found the problem with the code;

    <?php
    if( is_home() ) $my_sitename = ‘Enter Blog site name here’;
    else $my_sitename = get_bloginfo(‘name);?>

    the (‘name) is missing an ‘…so it should be (‘name’). I must have deleted it at some point and not noticed.

    Thanks for all your help Esmi.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Different pages & different templates’ is closed to new replies.