Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] Pages no longer display (http://forum.bytesforall.com/showthread.php?t=19264)

RobinDenning Jan 5, 2013 04:47 PM

[SOLVED] Pages no longer display
 
I made a bunch of changes and now my pages are not displaying.
I will go through each change and back it out to see which one is causing the problem, but if you have any other suggestions I am all ears. http://alittlesewing.com

The changes I made:
1. Get rid of little arrows next to the Social Share Icons below the post:
Dashboard >Appearance >Montezuma Options >CSS Files >content.css

Scroll down and find "Unordered Lists in posts and comment bodies". There are two lines in there that add the arrows - delete them:

background: transparent url(%tpldir%/images/icons.png) -48px -84px no-repeat;
background: transparent url(%tpldir%/images/icons.png) 0px -48px no-repeat;

2. Suppress display of featured image:

Dashboard >Appearance >Montezuma Options >Sub Templates >postformat.php

Remove this line from postformat.php:

<?php bfa_thumb( 620, 180, true, '<div><div>', '</div></div>' ); ?>

3. Display full post, not excerpt:

Dashboard >Appearance >Montezuma Options >Sub Templates >postformat.php

Find
<?php bfa_excerpt( 55, ' ...' ); ?>

Change that to:

<?php get_content(); ?>

*AND* edit php file as follows:

Dashboard->Appearances->Editor

Under Templates, find parse_php.php

Change the HTML on line 35 of the parse_php.php file, from:

if (have_posts())

to

if (is_single() AND have_posts())

4. Change the wording on the link to comments.

Dashboard >Appearance >Montezuma Options >Sub Templates >postformat.php

Towards the bottom, look for:

<?php _e( 'Read more &rarr;', 'montezuma' ); ?></a>

Where it says Read more, change to Replies

5. Remove the RSS icon from the top right hand corner of the Home page, because it overlaps the blog title on a mobile device.

Dashboard >Appearance >Montezuma Options >Sub Templates >header.php

Remove:

<a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php _e( 'Subscribe to RSS Feed', 'montezuma' ); ?>"></a>

6. Remove the navigation tabs between pages above the blog post

Dashboard >Appearance >Montezuma Options >Main Templates >index.php

Remove:

<?php bfa_content_nav( 'multinav1' ); ?>

7. Force the text to align with the date

Dashboard >Appearance >Montezuma Options >CSS Files > posts.css

go to the POSTBODY section, find this HTML statement and add this margin-top: 0px; to it.

Before:

HTML Code:

.post-bodycopy p {

}

After:

HTML Code:

.post-bodycopy p {
    margin-top: 0px;
}


RobinDenning Jan 5, 2013 04:57 PM

This is the change that makes my pages not display- can you suggest a change?


Dashboard->Appearances->Editor

Under Templates, find parse_php.php

Change the HTML on line 35 of the parse_php.php file, from:

if (have_posts())

to

if (is_single() AND have_posts())

juggledad Jan 5, 2013 06:13 PM

Oops, change that line from
HTML Code:

if (have_posts())
to
HTML Code:

                if ((is_single() OR is_page()) AND have_posts())
and see what that does.


update: see PATCH 113-03: Using 'the_content()' in a virtual template may incorrect results

RobinDenning Jan 5, 2013 06:41 PM

yep, that did it! thank you!!


All times are GMT -6. The time now is 12:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.