stevecorwin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: New created theme not loading style.cssWow. just. wow. I guess deleting the functions file and starting over was the key. While waiting to see if anyone would comment here and assist, I decided to go through the process again of creating a functions file and adding code to enqueue the stylesheet. I put the following snippet (which I’ve done at least 10 times in the last 2 days) and updated my site. voila! it worked.
<?php
wp_enqueue_style( ‘style’, get_stylesheet_uri() );
?>I have no idea why it hadn’t been working. Maybe the functions file itself was corrupt. I don’t know. Just glad it’s working.
Forum: Fixing WordPress
In reply to: New created theme not loading style.cssI’m at my wits end here. I thought I was starting to have a handle on this stuff but I’ve spent 3 days trying to get my style.css to have any effect on my site and have failed. I’ve tried everything I could find online. The only thing I can think of to do is beg you guys for assistance. I’ve deleted my function.php file to start over. The following is the complete code I have so far for my style.css, header.php, footer.php, and index.php.
*****index.php code:
<?phpget_header();
if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?><article class=”post”>
<h2>“><?php the_title() ?></h2>
<?php the_content() ?>
</article>
<?php endwhile;else :
echo ‘<p>There are no posts!</p>’;endif;
get_footer();
?>
*****style.css code:
/*
Theme Name: Prince
Author: Steve Corwin
Author URI: http://bridgetales.com
Version: 1.0
*/body {
font-family: Arial, sans-serif;
font-size: 16px;
color: green;
}
/* unvisited link */
a:link {
color: pink;
}/* visited link */
a:visited {
color: green;
}/* mouse over link */
a:hover {
color: hotpink;
}/* selected link */
a:active {
color: red;
}*****header.php code:
<!DOCTYPE html>
<html <?php language_attributes(); ?>><head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<title><?php bloginfo( ‘name’ ); ?></title>
<?php wp_head() ?>
</head><body <?php body_class(); ?>>
<div class=”container”>
<header class=”site-header”>
<h1>“><?php bloginfo( ‘name’ ); ?></h1>
<h4><?php bloginfo( ‘description’ ); ?></h4>
</header>****footer.php code:
<hr>
<h2>The Footer!</h2>
<footer class=”site-footer”>
<p><?php bloginfo( ‘name’ ) ?></p>
</footer>
</div> <!– closes <div class=container”> –><?php wp_footer() ?>
</body>
</html>Can someone please tell me what I need to do from here to get the style.css to take effect?
p.s. all above files located in root theme folder
- This reply was modified 8 years, 4 months ago by stevecorwin.
Forum: Fixing WordPress
In reply to: New created theme not loading style.cssThe Theme handbook is the primary resource I used to get where I am. I’ve added the code suggested in the handbook to my functions.php file and nothing I add to my style.css has any effect on my site.
Just an update. all new content is displaying thumbnails properly when sharing. Not sure what I did to initial posts that caused problem but all is well now
Forum: Fixing WordPress
In reply to: wamp localhost redirect too many timesNevermind. I found the problem. My homepage was set to static. When I changed it to recent posts, it worked fine.
- This reply was modified 8 years, 4 months ago by stevecorwin. Reason: figured out the solution
Forum: Fixing WordPress
In reply to: Hide all Page TitlesI had to do a little inspecting with Chrome to come up with this modification on my twenty seventeen child theme to remove page title and minimize gap left by its absense
/*remove page title, no gap*/
#page #content {
padding-top: 13px !important;
}#page .page-title {
display: none !important;
}Thanks @glyndavidson for your time. I’ll add pics to those two and see what happens. All in all, I think I’ll just move on with new content and see if I can get those to work correctly. Do you know of a good online guideline for preparing images properly before inserting into posts so I have less problems?
True but I have Yoast set up to use default image (the one showing up in Les Brown) when there is no available image. I works for Les Brown but not for the other two.
I really don’t want to be held captive by being forced to include an image with every post, even though I usually will.
I guess I should just start post new posts and see what happens. two weeks ago, I had no idea how to do any of this. Have since read WordPress for Dummies, HTML5 and CSS3 for Dummies and several others to get this far. Who knows what I may have done during the initial setup of my site and the original posts (I did most of them the same day). Now that I have a little idea of what I’m doing, maybe new content wont be a problem.
Still frustrating though. I appreciate the help bro
The Les Brown image is too small so the default image is selected. I’m aware of that one and not really worried about it. Just wondering why the other two are pulling an image from a completely seperate post.
no change
I’ve spent hours disabling one or the other, installing different plugins, all to no avail. I’ll disable open graph meta data via Yoast
Now, suddenly, the problem post I linked to in previous comment is supplying the proper thumbnail to fb.
Still having problem with certain posts showing up with thumbnail from other posts. See the “Stories coming soon” and “Forgiveness Reading list” posts under Blog section of my site. When I share them, the pic from the “April Kauffman’s daughter Pack ‘working on forgiveness” post shows up. What shows up for you?
you probably ran the test while I was switching plugins (I had temporarily disabled jetpack)
I did what you said and I see “everything looks great”
No change whatsoever to the problem of thumbnails showing up properly
I’ve tried social media plugins, yoast seo. Nothing fixes problem. Now, some of my posts, when shared, are showing images from other posts that don’t even exist on my server anymore. This can’t possible be this convoluted. Isn’t sharing to social media one of the top points of having a blog site in the first place?
I don’t what to do at this point. I’m about to shut the site down, cancel my bluehost account, and start over with another host.
- This reply was modified 8 years, 4 months ago by stevecorwin.
I have tried setting featured image
I tried the home page and thumbnail appeared for me also. I’m having trouble with individual posts, but not all of them. The ones that won’t show thumbnail, refuse to do so no matter what image I use in the post, even the same image that shows up for its corresponding post when I share it.
Got me really frustrated
The post i’m having trouble with is https://bridgetales.com/the-beginning-of-the-tale/#more-363