• Hi,
    My site is https://patrick.dinneen.com, I’m using Monotone for a pure photo blog.

    I want to add ‘next’, ‘previous’ and ‘random’ to the header area above the image. The logic being that this will save people having to scroll down if the image is large. I’d imagine the code is pretty simple…can anyone throw it at me?
    thanks,
    Pa.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dinneenp

    (@dinneenp)

    update:
    In my header I want to add links ‘random’, ‘next’ and ‘previous’with text for the link.
    This is my code-
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php wp_title(‘?’, true, ‘right’); ?> <?php if ( is_single() ) { ?> Blog Archive ? <?php } ?><?php bloginfo(‘name’); ?></title>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <!–[if IE]>
    <style type=”text/css”>
    body { font-size:12px; }
    </style>
    <![endif]–>

    <?php
    if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ );
    wp_head();
    ?>
    </head>
    <body<?php
    global $vertical;
    //set vertical class or archive class, if needed
    if($vertical && !is_archive() && !is_search()) { echo ‘ class=”vertical”‘; }
    if(is_archive() or is_search()) echo ‘ class=”archive”‘;
    ?>>

    <div id=”page”>

    <div id=”header”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>

    <ul id=”menu”>
    /<?php echo mysql2date(‘Y’, get_lastpostdate(‘blog’)); ?>/”>archive /about/”>about
    </div>

    <div id=”content”>
    <div class=”sleeve”>

    Thanks,
    Patrick.

    Thread Starter dinneenp

    (@dinneenp)

    I’ve managed to add previous and next, just looking for random now
    ‘<?php previous_post(‘%’, ‘PREVIOUS ‘, ‘no’); ?>’
    ‘<?php next_post(‘%’,’ NEXT’, ‘no’); ?>’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple question- how to add ‘next’, ‘previous’ and ‘random’ links?’ is closed to new replies.