laptophobo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how do I create a home page footer.phpHi Esmi. Thanks for the link and quickness. I’m new at WP, so I’m having some trouble getting the configurations to work. Do you have a moment to check my work? Here’s what I did…
I created a new file: “footer-home.php” (duplicated from “footer.php”), and added in the desired change. I uploaded it to my (child’s) theme.
In the template’s “page.php” file I replaced this code:
<?php get_footer(); ?>
with this code:
<?php if ( is_home() ) : get_footer('home'); elseif ( is_404() ) : get_footer('404'); else : get_footer(); endif; ?>
The non-home pages are showing the footer.php stuff, but the Home page is also viewing the footer.php stuff as well. (No difference.)
I tried the above code in the home.php file as well, but that didn’t work either.
Was I supposed to do something else (like in the functions.php file?)Thank you for your time (and patience).
Forum: Fixing WordPress
In reply to: How to highlight posts on static home pageThank you!
Forum: Themes and Templates
In reply to: Hide title on homepageWell, kwight, I’ve replaced
<h1 class="entry-title"> <?php the_title(); ?> </h1>
with
<h1 class="entry-title"> <?php if ( ! is_front_page() ) { the_title(); } ?> </h1>
within the loop-single.php (in the theme’s folder) and got no change.
At least, for now, I’m able to hide it using a CSS style.
Forum: Fixing WordPress
In reply to: hide_title custom field not working?I too would like to get my custom field to work. This way I won’t have to keep making special CSS styles for pages I wish to hide the title on.
In Custom Fields section of my Home page screen I’ve placed “hide_title” (with and without quotes) in Name, and “true” (with and without quotes in Value. Still, nothing happens. Am I supposed to place some sort of function tag or something in one of the php pages? Obviously, I’ve very new to WP and I could use some hand-holding right now.
Thank you!
Forum: Themes and Templates
In reply to: Hide title on homepageIn the (closed) post: https://www.ads-software.com/support/topic/hide-homepage-title?replies=6 gabesands says to find
<?php the_title(); ?>
and then to add some tags which I believe is now supposed to look this:<?php if ( is_front_page() ) { ?><?php } else { ?> <?php the_title(); ?> <?php } ?>
This didn’t work for me. But maybe I’m in the wrong file of the theme? The only place I could find “the_title” code was within loop-single.php. It wasn’t in index.php, page.php or home.php.
Any ideas on this, or how to remove the Title from the Home page?
Forum: Fixing WordPress
In reply to: Add a second menu to the siteI have a menu on the top of my home page (just under the Header) and I’d like to add another menu just below it. I do have the “Second Menu” option within Appearance>Menus>Theme Location. So, I’m wondering how to insert it. (Obviously, I’m new to WP.)
Thank you,
Forum: Themes and Templates
In reply to: Removing Text from Header and adding a background imageAlchymyth,
I’m also a neophyte when it comes to WP. I’m having the on-off text in header problem as Rusty. I’m using a theme called Notes Blog that has this added script in the theme’s functions.php file:// The site header define('HEADER_TEXTCOLOR', '00FF00'); define('HEADER_IMAGE', get_bloginfo('stylesheet_directory') . '/img/header-default.gif'); define('HEADER_IMAGE_WIDTH', 960); define('HEADER_IMAGE_HEIGHT', 116); // The site header function function site_header_style() { ?> <style type="text/css"> div#header { background: url(<?php header_image(); ?>); } </style><?php } // The admin header function function admin_header_style() { ?> <style type="text/css"> #headimg { width: <?php echo HEADER_IMAGE_WIDTH; ?>px; height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; } </style><?php } // Enable! add_custom_image_header('site_header_style', 'admin_header_style');
From this, can you see how I can make the on-off option work?
Thanks much!NEVER MIND! I found the fix on this branch: https://www.ads-software.com/support/topic/removing-text-from-header?replies=11