douglasbell01
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Google! Description error.zaccar.com
Forum: Fixing WordPress
In reply to: UL Hyperlink stylingFound a solution here
Needed more code added onto CSS. Simple.
.post ul li a:link, a:visited {color: #000; text-decoration: none;} .post ul li a:hover, a:active {color: #ccc; text-decoration: underline;}
Forum: Fixing WordPress
In reply to: Sidebar Alignment TroubleThanks – works perfectly again.
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?Hi, and thanks for all your advice. I think I’ve mapped out a new way forwards, and am hugely grateful for your help.
You’re right; best to take a few steps backwards. The problem was definitely
<?php query_posts('category_name=news'); ?>
in the index.php template, which was being referenced more than needed. I’ve stripped it out. My changes to the original code did not go far enough, evidently, to get the job done as I wanted it. The best way forwards is the simplest.Instead of a news feed on the home page, I’ve dropped the query code altogether, and dropped the news feed as a landing page – now using a dedicated ‘home’ page in its place, with a welcome message. News will appear through the ‘menu’ (categories) drop down, should anyone want it.
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?Actually, just realised that I can’t use a Categories menu in the sidebar – same problem. Categories selected don’t show up. Just ‘news’.
I could created pages of all the posts (exclude those pages from the header, and have them on a sidebar menu) – but this still means that the categories will not work, which is not good for the club.
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?Thanks.
I’m still not sure what to do to get the categories working. I can work around it, as you suggested with a custom menu in the sidebar, but would rather solve the problem.
The permalinks are working fine. The URL is correct when a category is selected from the nav bar. There is content in each category. But ‘News’ shows up every time.
So WP is not getting the right posts from the database.
D
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?Thanks for the tip.
Just reading through the codex page on category templates
The same theme has been used here and works fine for Categories. Viewing their source code, I see marginal differences on the nav bar coding, but cannot tell if they have a category template installed.
Looking through the theme files again, I notice now that there isn’t even an archive.php – which means (guessing) that there is no ‘category template’ installed?
This seems odd. I guess I need to create some new PHP to get the nav bar working. Your thoughts on this/tips?
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?The theme does not support Custom Menus, but is hard coded to allow categories to be selected on the nav bar. The links work! They land on the correct page ‘/category/resources’ for example – but the content is incorrect.
Puzzling.
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?I’ve been playing with the Index.php file (wanting just ‘news’ on the home page) and wonder whether this is causing the problem somehow.
<div id="mainColumn"> <?php query_posts('category_name=news'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="post"> <div class="postMeta"> <p class="container"> </p> </div>
When news is removed, all posts show on the home page, and when selecting a category filter.
D
Forum: Fixing WordPress
In reply to: Categories not filtering. Code problem? Database Problem?Hi Peredur,
thanks for the quick reply.
All posts now have a single associated category (just followed your advice, and made sure), but the problem persists. No published posts are listed as uncategorized (just a single draft post).
D
Forum: Fixing WordPress
In reply to: Safari Bug? Or coding error…Got it! Te header.php was missing a closing
></a>
on the logo/homepage link code.Thanks for your help vtxyzzy – much appreciated.
Forum: Fixing WordPress
In reply to: Safari Bug? Or coding error…Tried deactivating all the Plugins, but no luck there. Deleted many plugins too.
The problem only arose when editing the header.php to include a logo. Previously, the theme inserted the site title in H1 tags.
Forum: Fixing WordPress
In reply to: Safari Bug? Or coding error…Sorry, I don’t understand your question. Can you explain what you mean, and how to amend the code please? I changed it recently to the following (no success).
Thanks.
<ul class="nav fix"> <li><a>" title="Recent News">News</a></li> <li class="last"><?php wp_list_pages('title_li=&sort_column=post_title' ) ?> <li id="searchBar1" class="searchField"> <div>
[Please post code snippets between backticks or use the code button.]
Forum: Fixing WordPress
In reply to: Safari Bug? Or coding error…Hi vtxyzzy
that is what it looks like, but I can’t see the root cause. Where do you think the corrupted code is hiding? I have checked the header and nav php files again, without spotting anything unusual, such as extra list tags.
Header Code: https://pastebin.com/pW5FeWqY
Navigation Code: https://pastebin.com/nZb77CHn
Forum: Themes and Templates
In reply to: IE Compatibility Fail – theme issue?Progress made on both markup errors and CSS errors – thank you for your advice… some valuable lessons learned from the links you posted.
I’m using IE 8 to test the site, and improvements can be seen – not tested IE 9.
There is still a problem in the header – with the ‘contact’ (jpg) info floating left next to the logo, instead of floating right, as instructed. The image aligns correctly on Safari and Firefox – and apparently older versions of IE.
From Header.php:
<id=”ContactImage” class=”alignright”>
<img src=”https://www.chineseoriginal.com/chineselessons/wp-content/images/contact.jpg” alt=”Call Chinese Original Today” /></div>Any ideas for a tidy fix?