Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)
  • Thread Starter bigscaryrobot

    (@bigscaryrobot)

    That worked! Here’s the final code. Not sure if I did it right, but it works. ??

    <div id="nextprevious">
    <?php posts_nav_link( ' ', '<img src="' . get_bloginfo('stylesheet_directory') . '/images/next.png" style="float:right;"/>', '<img src="' . get_bloginfo('stylesheet_directory') . '/images/prev.png" style="float:left;" />' ); ?>
    </div> <!-- Closes contentwrapper-->

    Thanks so much for your help!

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Okay, I think it’s sort of working now. But notice on this page (https://flowersarepretty.com/?paged=2) how NEXT and PREVIOUS are right next to each other. Any way to fix that so they are on either side of the post like before?

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Here’s the original Index.php for reference:

    [moderated: chunk of code removed as per forum rules – please use a pastebin for larger amounts of code]

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    I’m probably not coding it right, but I was able to get one button to appear using this code:

    <div id="nextprevious">
    <?php posts_nav_link( ' ', '<img src="' . get_bloginfo('stylesheet_directory') . '/images/prev.png" />', '<img src="' . get_bloginfo('stylesheet_directory') . '/images/next.png" />' ); ?>
    </div> <!-- Closes contentwrapper-->

    However, it only seems to be the NEXT button. The PREVIOUS button just disppears.

    My site is https://flowersarepretty.com

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Yes, using that code makes the navigation disappear entirely. I think I have that Kubrick problem and I’m not sure how to fix it within this theme (Pixeled).

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Never mind. I got it. ??

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Any idea how to edit it? I see ?php wp_list_pages('sort_column=ID&depth=3&title_li=');?> but I have no idea how to add different links.

    Thanks.

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    You are my hero! Thanks so much! ??

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    I saw that, but I don’t understand where to put the code. In the Stylesheet?

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    I only have a page.php, so I guess it would go in there?

    Also, I have no idea where to put that code in my header.

    <head>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"  />
    
    <title><?php if (is_home () ) { bloginfo('name'); echo " - "; bloginfo('description'); 
    
    } elseif (is_category() ) {single_cat_title(); echo " - "; bloginfo('name');
    
    } elseif (is_single() || is_page() ) {single_post_title(); echo " - "; bloginfo('name');
    
    } elseif (is_search() ) {bloginfo('name'); echo " search results: "; echo wp_specialchars($s);
    
    } else { wp_title('',true); }?></title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    
    <meta name="robots" content="follow, all" />
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(wp-content/themes/pixel/images/".$random.".png); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <style type="text/css">
    
    #header #logo {
    
    background: <?php
    
    $stylesarray = array("mastheadfinal");
    
    $random = $stylesarray[rand(0,count($stylesarray)-1)];
    
    echo "url(wp-content/themes/pixel/images/".$random.".png);"
    
    ?>
    
    }
    
    </style></div>
    
    <?php wp_head(); ?>
    
    <!--[if lt IE 8]>
    
    <link href="<?php bloginfo('template_url'); ?>/ie.css" rel="stylesheet" type="text/css" />
    
    <![endif]-->
    
    <!--[if lt IE 7]>
    
    <link href="<?php bloginfo('template_url'); ?>/ie6.css" rel="stylesheet" type="text/css" />
    
    <script src="https://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
    
    <![endif]-->
    
    </head>
    
    <body>
    
    <div id="wrapper">
    
    <div id="header" onclick="location.href='<?php bloginfo('home') ?>'">
    
    <div id="logo">
    
    <span><?php bloginfo('description'); ?></span>
    
    </div> <div id="topright">
    
    <ul><li>
    
    <BODY><div id=EchoTopic>
    
    <a href="https://notstepfordwives.com/wordpress/?page_id=46" onmouseover="image1.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/cookingbutton_2.gif';"
    
    onmouseout="image1.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/cookingbutton_1.gif';">
    
    <img name="image1" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/cookingbutton_1.gif" border=0></a>
    
    <a href="https://notstepfordwives.com/wordpress/?page_id=48" onmouseover="image2.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/tipsbutton_2.gif';"
    
    onmouseout="image2.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/tipsbutton_1.gif';">
    
    <img name="image2" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/tipsbutton_1.gif" border=0></a>
    
    <a href="https://notstepfordwives.com/wordpress/?page_id=50" onmouseover="image3.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/shoppingbutton_2.gif';"
    
    onmouseout="image3.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/shoppingbutton_1.gif';">
    
    <img name="image3" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/shoppingbutton_1.gif" border=0></a>
    
    <a href="https://notstepfordwives.com/simplemachinesforum/" onmouseover="image4.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/forumbutton_2.gif';"
    
    onmouseout="image4.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/forumbutton_1.gif';">
    
    <img name="image4" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/forumbutton_1.gif" border=0></a>
    
    </BODY>
    
    </li>
    
    </ul>
    
    </div> 
    
    </div><!-- Closes header -->
    
    <div class="cleared"></div>
    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Where would I put the code if I used the “get header” tags? Which php file?

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    Thanks! That worked. ??

    Thread Starter bigscaryrobot

    (@bigscaryrobot)

    I don’t have a category.php. I have:

    Archives (archive.php)
    Comments (comments.php)
    Footer (footer.php)
    Header (header.php)
    Main Index Template (index.php)
    Page Full Width Page Template (page_fullwidth.php)
    Page Template (page.php)
    Search Form (searchform.php)
    Sidebar (sidebar.php)
    Single Post (single.php)
    Theme Functions (functions.php)
    welcome.php (welcome.php)
    Stylesheet (style.css)

    I’m looking to do the same thing, but there is no mention of comments in my index.php file. Where else might I find this code?

    This is my header code. Could someone tell me how to integrate this functionality?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    
    "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"  />
    
    <title><?php if (is_home () ) { bloginfo('name'); echo " - "; bloginfo('description'); 
    
    } elseif (is_category() ) {single_cat_title(); echo " - "; bloginfo('name');
    
    } elseif (is_single() || is_page() ) {single_post_title(); echo " - "; bloginfo('name');
    
    } elseif (is_search() ) {bloginfo('name'); echo " search results: "; echo wp_specialchars($s);
    
    } else { wp_title('',true); }?></title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    
    <meta name="robots" content="follow, all" />
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo(wp-content/themes/pixel/images/".$random.".png); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <style type="text/css">
    
    #header #logo {
    
    background: <?php
    
    $stylesarray = array("mastheadfinal");
    
    $random = $stylesarray[rand(0,count($stylesarray)-1)];
    
    echo "url(wp-content/themes/pixel/images/".$random.".png);"
    
    ?>
    
    }
    
    </style>
    
    <?php wp_head(); ?>
    
    <!-- this product is released under General Public License. Please see the attached file for details. You can also find details about the license at https://www.opensource.org/licenses/gpl-license.php -->
    
    <!--[if lt IE 8]>
    
    <link href="<?php bloginfo('template_url'); ?>/ie.css" rel="stylesheet" type="text/css" />
    
    <![endif]-->
    
    <!--[if lt IE 7]>
    
    <link href="<?php bloginfo('template_url'); ?>/ie6.css" rel="stylesheet" type="text/css" />
    
    <script src="https://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
    
    <![endif]-->
    
    </head>
    
    <body>
    
    <div id="wrapper">
    
    <div id="header" onclick="location.href='<?php bloginfo('home') ?>'">
    
    <div id="logo">
    
    <span><?php bloginfo('description'); ?></span>
    
    </div> <div id="topright">
    
    <ul><li>
    
    <BODY><div id=EchoTopic>
    
    <a href="https://notstepfordwives.com/wordpress/?page_id=46" onmouseover="image1.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/cookingbutton_2.gif';"
    
    onmouseout="image1.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/cookingbutton_1.gif';">
    
    <img name="image1" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/cookingbutton_1.gif" border=0></a>
    
    <a href="https://notstepfordwives.com/wordpress/?page_id=48" onmouseover="image2.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/tipsbutton_2.gif';"
    
    onmouseout="image2.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/tipsbutton_1.gif';">
    
    <img name="image2" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/tipsbutton_1.gif" border=0></a>
    
    <a href="https://notstepfordwives.com/wordpress/?page_id=50" onmouseover="image3.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/shoppingbutton_2.gif';"
    
    onmouseout="image3.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/shoppingbutton_1.gif';">
    
    <img name="image3" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/shoppingbutton_1.gif" border=0></a>
    
    <a href="https://notstepfordwives.com/simplemachinesforum/" onmouseover="image4.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/forumbutton_2.gif';"
    
    onmouseout="image4.src='https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/forumbutton_1.gif';">
    
    <img name="image4" src="https://notstepfordwives.com/wordpress/wp-content/themes/pixel/images/icons/forumbutton_1.gif" border=0></a>
    
    </BODY>
    </li>
    </ul>
    </div> 
    
    </div><!-- Closes header -->
    
    <div class="cleared"></div>
Viewing 15 replies - 1 through 15 (of 33 total)