Technokinetics
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to set class to the first element of wp_list_pagesSorry, my code used backticks as delimiters, which the forum software here stripped out. Glad you worked out what needed tweaking to get it to work.
– Tim
Forum: Fixing WordPress
In reply to: How to set class to the first element of wp_list_pagesDoodlebee’s right, you could use WP’s pre-existing class for this. The only drawback of that is that if you reorder your Pages so that a different Page comes first in the list, then whatever you were doing to the first item in the Page list before you’ll now be doing to a different item instead.
To add a class of “first” to the first item in your Page list, whatever Page that happens to be, something like this should work:
$page_list = wp_list_pages(‘title_li=&sort_column=menu_order&echo=0’);
$page_list = preg_replace(‘class="page_item‘, ‘class=”first page_item’, $page_list, 1);
echo $page_list;For the wp_list_pages() call in the first line of the above, just use whatever you’re already using with “&echo=0” added to the end of the parameters.
– Tim
Forum: Plugins
In reply to: [Plugin: Page Lists Plus] nofollow tags do not workJust spotted this thread. Thankfully chitgoks contacted me by email so we’ve already gone through the issue privately, but as this is here I’ll respond: this was just a misunderstanding concerning what Page Lists Plus is for.
Page Lists Plus lets you nofollow individual links in Page lists. The OP was looking for a plugin that would automatically nofollow links in the page content. Not surprisingly, PLP didn’t work for that (it isn’t meant to). It does work for Page lists, however.
– Tim
P.S. I think that chitgoks may still be interested in a plugin to nofollow page content links, if anyone has any suggestions / time on their hands.
Forum: Fixing WordPress
In reply to: Formatting | How Do I Make White Space In Text?Use line-height to increase the space between lines, and padding to increase the space between paragraphs.
– Tim
Forum: Plugins
In reply to: [Plugin: Page Lists Plus] lists are screwed?Hi tanicos2,
Thanks for the bug report. (For future reference, bug reports sent using the email link on the Settings > Page Lists Plus page will definitely reach me; bug reports posted here will only be dealt with if I happen to notice them.)
As a first observation, all of your closing tags are missing, in the before code as well as the after code. Can you confirm that that’s how the code appears on the page?
The main point, though, is that your after code is correct. The closing tag shouldn’t be where you have “!!! here the li should end”, it should be after the nested list, where it is.
If you’d like to point me to your site, I’d be happy to help you get this working as you’d like it to, but as far as I can tell so far the problem here isn’t with Page Lists Plus.
Regards,
Tim
Forum: Fixing WordPress
In reply to: Is there a search function that actually works?In what way doesn’t the default search function work? Are you seeing bad results to searches, or no results?
– Tim
Forum: Plugins
In reply to: [Plugin: Exclude Pages] Plugin having no effectIt sounds like your theme uses its own custom function for this; dp_list_pages isn’t a native WP function. Check your functions.php theme file, which is where this function should be defined.
– Tim
Forum: Plugins
In reply to: [Plugin: Page Lists Plus] Breaks nested listsThanks; now I see what you’d like changed. I agree that it would be better to hide the children of hidden Pages, and that’s what the next release will do.
– Tim
Forum: Plugins
In reply to: [Plugin: Page Lists Plus] Breaks nested listsI’ve used Page Lists Plus on a number of sites with nested lists without seeing this problem, and at the moment I’m struggling to replicate the error.
If anyone else has seen this, or has used PLP with nested lists without seeing this, then it would really be useful for me to know. A link to a site showing the problem would be even more helpful.
Thanks.
– Tim
Forum: Themes and Templates
In reply to: Get rid of drop downs in iNoveIt looks like you’ve either edited
<?php include('templates/start.php'); ?>or moved / deleted your templates/start.php file. The start.php file links to your stylesheet, but at the moment isn’t loading.If you can’t spot the mistake, then I’d suggest restoring the original files to get things working again. You then need to edit lines 14 and 16 of templates/header.php (assuming that you’re using the version that I just downloaded), changing “depth=2” to “depth=1” in each case.
– Tim
Forum: Themes and Templates
In reply to: Get rid of drop downs in iNoveNo, there’s definitely a wp-content/themes/inove/templates/header.php file, and that’s what needs editing.
– Tim
Forum: Fixing WordPress
In reply to: Page naming and php wp_list_pagesThe Page Lists Plus plugin lets you set an alternative title to be used in wp_list_pages output.
– Tim
Forum: Themes and Templates
In reply to: Help with template tabs and cssTry this:
#navcatlist li.current-cat a { background: #006599; }– Tim
Forum: Themes and Templates
In reply to: Get rid of drop downs in iNoveIt’ll probably be in templates/header.php then.
– Tim
Forum: Plugins
In reply to: Getting wp_list_pages to output page name instead of page titleThanks for the feedback, Tom; always useful.
– Tim