Forum Replies Created
-
AuthorPosts
-
Scott MilfordMember
Hmmm.... I don't get it. I checked it again and it seems to be displaying correctly on the Home page and all other pages, too. It's showing the "By" line and the comment link as well, just as I wanted it.
So I guess everything is good now. Thanks so much for your help, Sanjeev. I sincerely appreciate it!!
Cheers!
Scott MilfordMemberI was able to get it to display properly, but the weird thing is that it's only displaying properly on the archive pages. On the Home page, it only displays my name.
Here's what my code looks like right now:
/** Customize the post info function */
add_filter( 'genesis_post_info', 'fabric_post_info_filter' );
function fabric_post_info_filter($post_info) {
return 'by [post_author_posts_link] · [post_comments] [post_edit]';
}Sorry about the code. I don't know how to use Pastebin (or anything else) so that it is formatted the right way.
Scott MilfordMemberSanjeev,
That worked. Thanks. However, it also removed some information that I'd like to keep. Here's a before and after:
Was:
May 7, 2013 by Scott Milford · 6 Comments (Edit)Now:
"By Scott Milford"How can I make it look like this?
"by Scott Milford · 6 Comments (Edit)"
Thanks for your help, Sanjeev. You're awesome!
Scott MilfordMemberSanjeev,
Thanks for your reply. You are correct. It's the date near the by-line. Basically, I don't want the date to show at all. Is that doable?
Scott
Scott MilfordMemberI don't know if I'm explaining it properly. But as it turns out, the issue somehow fixed itself. Not sure why. But thanks for your help, Brad!! 🙂 You've been a big help and I finally was able to switch over and make the redesigned version of my blog live. 🙂
Scott MilfordMemberBrad,
Before this recent conversation, I didn't know what a "Github Gists" was and the same goes for "Pastebin". So I'll see if I can figure out how to use them. I'm sure it's probably not complex, but I haven't tried to convert any code into numbered lists before such as you do when you paste code.
There's one item showing up in the category list that I'd like to exclude. The ID number for that item is 51.
Scott
Scott MilfordMemberBrad,
Okay...so far so good. I have excluded the pages that I don't want showing. Now, I need to exclude one item (ID 51) from the category list. How would I do this? My code is below.
Cheers!
Scott------
<?php/**
* Handles display of 404 page not found errors.
*
* Custom 404 page not found error template. Exclude Hidden Pages From 404 Page Not Found Error Page.
*
* @category Genesis
* @package Templates
* @author Brad Dalton
* @link http://wpsites.net/web-design/add-content-404-page-genesis/
*//** Remove default loop **/
remove_action( 'genesis_loop', 'genesis_do_loop' );add_action( 'genesis_loop', 'genesis_404' );
/**
* This function outputs a 404 "Not Found" error message
*
* @since 1.6
*/
function genesis_404() { ?><div class="post hentry">
<h1 class="entry-title"><?php _e( 'Whoops! We Can’t Find What You’re Looking For!', 'genesis' ); ?></h1>
<div class="entry-content">
<p><?php printf( __( 'It appears as if you entered in an invalid URL or maybe the Internet had a hiccup. It’s nothing to worry about. Sometimes the Internet has strange behavior. I’m guessing you’ve been hit by a strong motivation to consider your options. 🙂 Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.', 'genesis' ), home_url() ); ?></p><div class="archive-page">
<h4><?php _e( 'Pages:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_pages('exclude=1193,308,1441,113,139,1030,1051,1387,1059,3,77,205&title_li='); ?>
</ul><h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
</ul></div><!-- end .archive-page-->
<div class="archive-page">
<h4><?php _e( 'Authors:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?>
</ul><h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4>
<ul>
<?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
</ul></div><!-- end .archive-page-->
</div><!-- end .entry-content -->
</div><!-- end .postclass -->
<?php
}genesis();
------Scott MilfordMemberBrad,
Oh...now I understand. Okay, so this is not my strength so I need to ask a few questions.
So basically, I just copy the code and pasted it in "404.php", replacing the text that's already there? This is the Genesis 404 Template...one of the core templates for Genesis. Is it okay to replace the text in that file?
How do I determine the page/post ID for the pages I don't want displayed?
Thanks for being patient with me, Brad. 🙂
Scott
Scott MilfordMemberOkay....I found this:
<?php
/*
WARNING: This file is part of the core Genesis framework. DO NOT edit
this file under any circumstances. Please do all modifications
in the form of a child theme.
*//**
* Handles display of 404 page.
*
* This file is a core Genesis file and should not be edited.
*
* @category Genesis
* @package Templates
* @author StudioPress
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
* @link http://www.studiopress.com/themes/genesis
*//** Remove default loop **/
remove_action( 'genesis_loop', 'genesis_do_loop' );add_action( 'genesis_loop', 'genesis_404' );
/**
* This function outputs a 404 "Not Found" error message
*
* @since 1.6
*/
function genesis_404() { ?><div class="post hentry">
<h1 class="entry-title"><?php _e( 'Not Found, Error 404', 'genesis' ); ?></h1>
<div class="entry-content">
<p><?php printf( __( 'The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.', 'genesis' ), home_url() ); ?></p><div class="archive-page">
<h4><?php _e( 'Pages:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_pages( 'title_li=' ); ?>
</ul><h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
</ul></div><!-- end .archive-page-->
<div class="archive-page">
<h4><?php _e( 'Authors:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?>
</ul><h4><?php _e( 'Monthly:', 'genesis' ); ?></h4>
<ul>
<?php wp_get_archives( 'type=monthly' ); ?>
</ul><h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4>
<ul>
<?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
</ul></div><!-- end .archive-page-->
</div><!-- end .entry-content -->
</div><!-- end .postclass -->
<?php
}genesis();
I get the feeling that I can only remove the whole PAGE category, rather than individual pages within the PAGE category listing. So does anyone know if there's a way to prevent some pages from showing up in this listing?
Scott MilfordMemberAnita & Brad,
First, thanks for taking the time to help me. I really appreciate it! Seriously!
Second, a 404 page already exists. It's not the one I created for my old theme. I don't know where it came from, but I assumed it was part of Genesis or Fabric theme. But if Fabric doesn't come with a 404 error page, it must be a part of Genesis.
Anyway, I really like this 404 error page and want to keep it. Only I'd like to edit it just a little. I don't want to make a brand new 404 page but why redo it if I mostly like what's already there?
So can you (or anyone) tell me how to find the source of this 404 page in Genesis so I can look for the parts that refer to the pages I'd like to not show up? I don't know if I'll find it or be able to edit the pages out, but I think I should be able to.
Thanks!
Scott
Scott MilfordMemberAnitac,
Thanks! I was able to figure it out and put a new title font in that I liked much better. Although, any font names that had spaces, such as, "Averia Libre" I couldn't get to load properly and couldn't figure out why. I thought by listing it as, "Averia+Libre" it would do the trick, but that didn't work. I ended up going with a single-word-name font. Anyway, thanks for your help. 🙂
Cheers,
Scott
Scott MilfordMemberAnitac,
The plugin looks fine. But I don't want to start from scratch. I'd really like to just edit what's already there. I don't know how to do that or even where to find the code/plugin/options/settings that cause the page to exist in the first place.
Any ideas how I can edit that existing 404 page that came with the Fabric theme? Or maybe it came with Genesis, I'm not sure. 🙂
Scott
-
AuthorPosts