cscott5288
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: really weird. posts in a category not displayingYou can see this post is in the Fishful Thinking Category:
https://www.viewfromthebleachers.net/2011/09/wikileaks-apologizes-for-accidentally-releasing-everyone%E2%80%99s-e-mail-messages/BLAH! Let me just show you what I have. In functions.php:
define('HEADER_IMAGE_WIDTH', 205); define('HEADER_IMAGE_HEIGHT', 50); define('HEADER_TEXTCOLOR', 'ffffff'); define( 'NO_HEADER_TEXT', true ); function header_style() { ?> <style type="text/css"> #header{ background: url(<?php header_image(); ?>) no-repeat; height: <?php echo HEADER_IMAGE_HEIGHT; ?>px; width: <?php echo HEADER_IMAGE_WIDTH; ?>px; } #header h1 a{color:#<?php header_textcolor();?>;} </style> <?php } // gets included in the admin header 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 } if ( function_exists('add_custom_image_header') ) { add_custom_image_header('header_style', 'admin_header_style'); }
I know it’s all a big fat mess. I have no idea what this code does.
And in header.php (this is where I want to display the image but the text blog name and description must disappear if an image is set):
<div id="header"><h1 id="logo_text"><a href="<?php echo home_url(); ?>"><?php echo bloginfo('name'); ?></a></h1> <p id="tagline_text"><?php echo get_bloginfo ( 'description' ); ?></p></div> <div id="header_wrap">
I still don’t understand …
If I put something like this in functions.php:
add_custom_image_header( '', 'custom_image_header_style' ); function custom_image_header_style() { ?> <style type="text/css"> #headimg { border-bottom: 1px solid #000; border-top: 4px solid #000; } </style> <?php }
What do I put in the template file to display the image?
Forum: Themes and Templates
In reply to: Trouble Changing Comment Form FieldsI am running into this problem too.
The tutorial for <?php comment_form(); ?> doesn’t make it clear what you have to do with $fields and apply_filters() to change the default HTML for the contact form:
<?php $fields = array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' . '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>', ); ?>
Any help?
Forum: Fixing WordPress
In reply to: wordpress custom image headers … i am so confusedAlso, what exactly is the “admin panel” that you need to use the function admin_header_style() { for?
What is the “admin panel”? Is that the preview mode when you are in appearance –> themes? Why does it need its own styles?
Forum: Fixing WordPress
In reply to: Use as featured image link not workingI have had the same problem. Just after installing BPS I can’t insert a featured image or delete plugins. I’m using a custom theme that I built myself.
I really love the plugin AIT and want to use it. Have you found a workaround yet?
Thanks!
Forum: Fixing WordPress
In reply to: Security: why do file permissions matter?Does anyone have any idea about this? I can’t find it in any of the tutorials and it seems like a fundamental thing.
Forum: Fixing WordPress
In reply to: display more than 15 with recent posts widgetThanks alchymyth. I think I learned that at some point but forgot.
For anyone wondering, just remove the following lines at 542 and 543 in default-widgets.php:
else if ( $number > 15 )
$number = 15;Forum: Fixing WordPress
In reply to: display more than 15 with recent posts widgetHmmm, that widget does not seem to work for me. It doesn’t display anything, just white space.
Forum: Fixing WordPress
In reply to: display more than 15 with recent posts widgetIs there anything I can do within a widget? Like a text widget?
I’d really like to not have to de-widgetize the area I currently want the links displayed.
Thanks for the help.
Forum: Themes and Templates
In reply to: border not showing on custom theme for university newspaperit’s been about three days and I’ve spent at least an hour each day troubleshooting just this one problem each day .. i can’t seem to find a solution. I’m at my wit’s end here. Any help would be greatly appreciated.
Forum: Themes and Templates
In reply to: border not showing on custom theme for university newspaperWhich sounds very like a margin/padding issue…
That’s what you would think, right? But i’ve tried all different combinations of margins and paddings … the sidebar is being very unreasonable.
Forum: Themes and Templates
In reply to: border not showing on custom theme for university newspaperConditional CSS is not a browser hack.
Oh. at any rate, I just never experimented with that stuff.
I’ve been able to get the div to wrap around everything on all browsers by using the overflow:auto property on the main div … the one problem is that the sidebar is pushed all the way to the bottom, even though the div is properly wrapping…
Forum: Themes and Templates
In reply to: border not showing on custom theme for university newspaperHmm, the problem is that, if I use a browser hack (adding a height to the ‘main’ div), I still end up with a broken template. Besides, I am always hesitant to use browser hacks because they have a tendency to cause problems in the future.
I noticed that the main div is wrapping properly in internal pages, e.g.: https://www.libertychampion.com/2010/11/02/fundraiser-a-success/
It’s just the home page that is having a problem on IE and Chrome.
.. such a pain in the ass.
Forum: Themes and Templates
In reply to: Blah!!! the unexpected $end error is driving me crazyThanks so much dude!!!