Forum Replies Created

Viewing 15 replies - 16 through 30 (of 46 total)
  • Thread Starter Sean

    (@aristophanes)

    Thanks David, I was afraid of that. I tried using preg_replace (as suggested by another helpful WP user who posts here) to take out all the footnote css tags in my RSS feeds. I’m not sure I did it correctly though, and like you said the problem of overlapping still remains.

    I’ll look out for a javascript solution, though I prefer not to use javascripts if I can get away with it.

    Thanks for your input.

    Thread Starter Sean

    (@aristophanes)

    For those new to PHP like me, this code will remove embedded tags and their contents. You can stick it in wherever you want the php to apply (in my case, within another plugin).

    function remove_embedded ($content) {
    return preg_replace('/<tag>(.*)</tag>/',"",$content);
    }
    add_filter('the_content','remove_embedded');

    To understand the code you will want to read the notes appended to this page.

    Thanks again filosofo.

    Thread Starter Sean

    (@aristophanes)

    I’ve isolated the problem as being in the heirarchy option. My blog is no longer able to display posts in a hierarchy. I have only edited theme php files and some plugins I used, which are unrelated to categories. Do you know what might be causing the problem?

    Sean

    (@aristophanes)

    No problem DapHan.

    As moshu said you could use conditionals – in this case, you would probably want to find this

    <div class="storycontent"><?php the_content(__('(more...)')); ?></div>

    and then wrap something like this around it:

    <?php if (!is_search()) { /* Place div here */ } ?>

    This will show no content if the page being displaying is a search results page. If you want it to do something else on search pages rather than show nothing at all, use the statement (after the end brace of the if statement)

    else { /* Code for the action you want to take with search pages */ }

    This may not be the cleanest way to do it – the classic theme seems to manage with a bare minimum of code, which is desirable. Sorry I can’t help much more – I’m new to php and WordPress too:)

    Sean

    (@aristophanes)

    If you want to apply css to output produced by the plugin, you will need to look at the plugin’s php file rather than your index.php or sidebar.php. The relevant code is the segment that starts with

    foreach ($tags as $tag) {

    I’m no programmer but I found that trial and error is usually a pretty straight-forward way of getting things done once you’ve found the source. I hope you achieve the look you’re going for. Let us know how you go:)

    Thread Starter Sean

    (@aristophanes)

    Oh, ok – thanks:) I must have misread the php website.

    Sean

    (@aristophanes)

    Do you know if you deleted search.php? If not, try looking inside for code like this:

    <?php the_content('Read the rest of this entry ?'); ?>

    Removing it and the tags around it should do the trick.

    If you did delete the file, the simplest way to get it back would probably be to redownload the theme and copy search.php into your theme directory.

    Hope that helps.

    Sean

    (@aristophanes)

    Yes you could use CSS, but it may not be so tidy, depending on how you want it to look. The simplest way I guess is to use a div with padding to the left:

    .indented text { padding-left: /* pixel value here */; }

    Where the pixel value for the padding is the distance from the start of the line to the bolded text.

    If the distance from the start of the line to the bolded text is not static and you don’t want to position absolutely, you can use floats, which allow you to position elements relative to eachother without distances.

    So you would put the text ‘Start of line’ in a div with the following property:

    float: left;

    And the rest in one which has:

    float: right;

    You can use the property
    clear: /* none, both, left or right */
    to ‘disallow’ floats on a given side or both. That is, if you use clear: left;, that div will not allow floats on its left side.

    Hope this helps.

    Thread Starter Sean

    (@aristophanes)

    I’ve had a chance to study the links you gave me closer – thanks, they were very helpful. However I don’t see a php function I could use that will replace not just the tags, but their contents as well. Doesn’t preg_replace just replace one thing for another?

    Thread Starter Sean

    (@aristophanes)

    Thanks very much filosofo.

    Sean

    (@aristophanes)

    If it’s a matter of settings, you will probably want to check under ‘My Account’ on the dashboard rather than in the ‘Settings’ tab.

    If you think it’s a code issue, check the contents of your post loop, which is everything in between

    <?php while (have_posts()) : the_post(); ?>

    and

    <?php endif; ?>

    in your index.php (also archive.php, page.php etc. if you have them).

    After the date, you will want to add in this:

    by <?php the_author()

    It looks like you modified Kubrick, so my guess is it’s already there, but in comments tags.

    Also, just FYI it helps to describe your problem in the title and not will all-caps. Just a friendly reminder:)

    Sean

    (@aristophanes)

    Why thank you very much.

    Sean

    (@aristophanes)

    I don’t have experience with this particular company, but yes you will need an ftp account with the appropriate permissions. I suspect this is something you’d want to ask the company about.

    As for the copy of the directory, yes, you can copy everything onto your computer as long as you have the relevant permissions.

    Sean

    (@aristophanes)

    Thanks Otto:)

    Sean

    (@aristophanes)

    Yes Otto42 you’re right. And you can replace the RSS link in the sidebar with the new Feedburner feed. The only problem with that is that people with browers which autodetect RSS feeds will sometimes still use the original WordPress feed, so the statistics won’t be accurate.

Viewing 15 replies - 16 through 30 (of 46 total)