cscott5288
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errBut even with this code, I can choose a thumbnail while editing a post but the thumbnail won’t show up in my index.php despite having placed: <?php the_post_thumbnail(‘title-image’, array(‘class’ => ‘titleImage’, ‘alt’ => ‘Title Icon’)); ?>
in index.phpForum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errOH shoot there is! I thought this code automatically grabbed the first picture in a post and displayed a thumbnail of it lol.
How do I do that?
Thanks so much RVoodoo and esmi
Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errOK, I posted Voodoo’s exact code. Still nothing. Here is the main index (code is just before excerpt):
https://pastebin.com/RkGpktWmHere is functions.php (code is at the bottom):
https://pastebin.com/1XbsZS31Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errWow wow wow. Wait a sec. I had <?php if( function_exists( ‘add_theme_support’ ) ) the_post_thumbnail(); ?> in my page template. Am i supposed to have that in functions.php?
Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errOh, so <?php the_post_thumbnail(); ?> is interchangeable with <?php if( function_exists( ‘add_theme_support’ ) ) the_post_thumbnail(); ?>
?Odd that it is not working.
Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errCould it be that I am not putting the code in index.php in the right places?
Here is index.php as it is now:
https://wordpress.pastebin.com/Dm5KC9Nq
Thanks for all the help
Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errThanks for all the help but, unfortunately, there is still no change.
Forum: Fixing WordPress
In reply to: Trying to get post thumbnails working on my theme … errHmm, still no change.
Forum: Themes and Templates
In reply to: Calling a function in functions.php?Oh, I see. It’s at the top there. Lol.
Forum: Themes and Templates
In reply to: Calling a function in functions.php?Thanks, that worked! I know nothing about php. How do you identify the name of the funciton?
Forum: Themes and Templates
In reply to: Calling a function in functions.php?Here is the code: https://wordpress.pastebin.ca/1829278
Forum: Themes and Templates
In reply to: Calling a function in functions.php?Here is the funciton:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Themes and Templates
In reply to: Trying to show category title not in an liAny help would be highly appreciated ?? I just need to know how to style the heading within the first li in the ul or to somehow get rid of the li, so there is only a heading.
Forum: Themes and Templates
In reply to: Trying to show category title not in an liP.S. I realize I have <h2> registered in the sidebar as well as placed into the php. I took it out but that wasn’t the cause of the problem.
Forum: Themes and Templates
In reply to: Trying to show category title not in an liI am using my own theme which I am testing before using it on my site.
Here is the sidebar:
<div id=”sidebar”>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(“Right Sidebar”) ) : ?><?php wp_list_categories(‘title_li=<h2>’ . __(‘Categories’) . ‘</h2>’ ); ?>
<?php wp_get_archives( $args ); ?>
<?php wp_list_comments( $args ); ?>
<?php endif; ?>
</div>
Here is the register for the sidebar in functions.php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Right Sidebar’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’,
));