I’ve tried over and over again, deleted the cache, and deactivated all the plug-ins, but nothing helps. I also tried editing the file style.css on the back end, but it gets overridden by the “Additional CSS” on the front end. So, I can’t edit any CSS. Please help!
]]>On other themes it’s a seemingly a simple matter to replace
<?php the_content(); ?>
with
<?php the_excerpt(); ?>
Looks like convention went out the window with 2012 as neither is used, so my question is how do I get excerpts to show on Category pages instead of full Posts?
Any ideas how to do this please?
I’m not a coder, so need idiot-proof instructions, thanks
Here’s the code from category.php in case it helps
get_header(); ?>
<section id=”primary” class=”site-content”>
<div id=”content” role=”main”>
<?php if ( have_posts() ) : ?>
<header class=”archive-header”>
<?php if ( category_description() ) : // Show an optional category description ?>
<div class=”archive-meta”><?php echo category_description(); ?></div>
<?php endif; ?>
</header><!– .archive-header –>
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
/* Include the post format-specific template for the content. If you want to
* this in a child theme then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( ‘content’, get_post_format() );
endwhile;
twentytwelve_content_nav( ‘nav-below’ );
?>
<?php else : ?>
<?php get_template_part( ‘content’, ‘none’ ); ?>
<?php endif; ?>
</div><!– #content –>
</section><!– #primary –>
Details:
Theme 2012 with child
Home page is the 2012 Page template… front-page.php
The Home page ID is (2)
Problem:
All I need to do is show the header image on the front page only and nowhere else.
I thought conditional tags are the way to go but the various combinations of code snippets I tried broke the site each time.
I have tried…
<?php if ( is_front_page() && $header_image ) :
<?php if ( is_front_page() && $get_header_image ) :
<?php if ( is_page( 2 ) ( get_header_image() ) : ?>
in place of the line…
<?php if ( get_header_image() ) : ?>
Maybe one of them is correct but perhaps I am missing something important,
Could one of you coding ninjas please supply the correct syntax for me that will work with this theme/template.
Here is the header image code from the 2012 header.php default to save you looking it up…
<stuff>
</nav><!– #site-navigation –>
<?php if ( get_header_image() ) : ?>
<?php endif; ?>
</header><!– #masthead –>
<div id=”main” class=”wrapper”>`
Theme: Default 2012 with Child
Homepage is a (Page)
6 Categories 10x posts each
I know this is possible but am not sure which is:
(a) The most reliable method
(b) exactly which code to use and
(c) which templates to insert the code into
Problem: Add a different sidebar to each of my six Categories so that each Post in that Category has that same sidebar.
The Home page will still use the default sidebar 1
Progress so far:
I have managed to register a new test sidebar in the functions.php which is now showing in the Widgets, so I think I have that part correct.
I believe I have to create a new sidebar.php file for each of my six categories yes? but this 2012 theme seems extra complicated and I have no idea where/how or which template to call them from.
Have looked at many tuts but many are half-assed, incomplete or very old and of course nobody seems to be doing it with the current 2012, thus I have become confused, please can someone enlighten me.
thanks
I have spent hours farting about with this myself but to no avail, so I thought I would ask here before giving up.
I’m using the 2012 Default Theme with Child Theme.
Home page is a static page (Page)
All content is in Categories (5) and Posts (50)
Site is under construction and 503’d using the Maintenance plugin
Other plugins installed:
Remove Category URL
Automatic Featured Image Posts
Question is this:
Is it possible to display the main horizontal nav menu (Categories and Posts) on the Home page ONLY, and nowhere else?
I have tried adding the various code snippets to both the parent and child themes found here and on other sites but none of them seem to work on this theme.
Can anyone help or provide a solution please?
I’m not a coder so please make any answers foolproof i.e. tell me where stuff goes! thanks
How can I do as the title of this thread suggests?
If it helps, I have a plugin that lets me edit the <head> tag of individual pages.
Any help given is very much appreciated
Best,
Sam
I added the Twitter code to the category template in editor. The Twitter Timeline appears on my front page, where I didn’t add the code. It’s fine that it’s there, but I also need it on my category pages. (It’s also odd that it’s there since I didn’t add the code to my page template like I added the Pinterest code to the page template.) When I open the category pages, the words “Tweets by” show up in blue and then disappear. So no Twitter Timeline shows on the category pages.
I spoke with a Bluehost representative who said the category template in the editor may be missing some code.
How do I fix this problem?
www.storiesfromacottage.com
]]>Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 60141 bytes) in /data/9/3/15/142/3015142/user/3347818/htdocs/marsartists/wp-includes/wp-db.php on line 1094
Attempting to edit one of the preexisting text widgets in the sidebar also evokes this error message…any help would be appreciated, thanks!
]]>All I’m trying to do is stretch the footer across the screen 100%. So far have been unable. There are about 20px of space on left and right sides regardless of the pixel side of the footer/rem size. Can anyone figure this out?
This is the 2012 theme.
A link to the site is below.
Thanks in advance
https://gettlaydophodyl.com/
]]>