WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] post title and content linked to home page (5 posts)

  1. jadar
    Member
    Posted 1 year ago #

    I hope I'm not being impolite, but I'm totally new to wordpress and have to fix something fast. Last night, I edited my blog posts in css (single.php)to show only content- no path or categories or tags. I also removed the monthly archives (archives.php) from the sidebar. It all looked fine last night. But today, when I checked the posts, the title and the content's text for every post has become hyperlinked to my homepage. I don't know how to fix it. I tried searching the forum for similar problems, but with my limited skills, it's not looking good.

    http://www.swuu.org

    This post is very important:

    http://www.swuu.org/2013/02/employment/

  2. jadar
    Member
    Posted 1 year ago #

    I tried removing the hyperlinks within the text editor. When I updated the post, it looked fine on the browser (Mozilla and IE), but when I checked my netbook and tablet, the hyperlinks were there.

  3. jasonmartin55
    Blocked
    Posted 1 year ago #

    what codes did you change, and to what to, maybe copying and pasting that would help someone see what you did exactly and how to correct it.

  4. jadar
    Member
    Posted 1 year ago #

    What changes I made were base mostly on posts in this forum. That's how out of my element I am.

    Original css single.php:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <?php get_header(); ?>
    <?php $options = get_option('inove_options'); ?>
    
    <?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
    
    	<div id="postpath">
    		<a>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a>
    		 > <?php the_category(', '); ?>
    		 > <?php the_title(); ?>
    	</div>
    
    	<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    		<div class="info">
    			</span>
    			<?php if ($options['author']) : ?><span class="author"></span><?php endif; ?>
    			<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
    
    		<div class="fixed"></div>
    		</div>
    		<div class="content">
    			<?php the_content(); ?>
    			<div class="fixed"></div>
    		</div>
    		<div class="under">
    			<?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'inove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?>
    			<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
    		</div>
    	</div>
    
    Changed to:
    
    <?php get_header(); ?>
    <?php $options = get_option('inove_options'); ?>
    
    <?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
    
    	<div id="postpath">
    		<a>" href="<?php echo get_settings('home'); ?>/"<?php _e('Home', 'inove'); ?></a>
    
    	</div>
    
    	<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    		<div class="info">
    			</span>
    			<?php if ($options['author']) : ?></span><?php endif; ?>
    			<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
    
    		<div class="fixed"></div>
    		</div>
    		<div class="content">
    			<?php the_content(); ?>
    </div>
    		<div class="under">
    			<?php if ($options['categories']) : ?><?php _e('Categories: ', 'inove'); ?></span><span></span><?php endif; ?>
    			<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
    		</div>
    	</div>
  5. jadar
    Member
    Posted 1 year ago #

    Before I began editing, I had copied the original css code into notepad. After getting in over my head, I went back and returned both posts and archives to the original script. I read more and more posts and articles on wordpress and found how to change what's seen through the current theme options.

    Again, I humbly apologize for taking up your time. It's easy to panic. I'm a DIY person in many ways. I've learned much from reading the forums and tutorials, but there's no substitute for experience when it comes to code.

    I'll mark this thread as resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic