gulliver
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Extra classes – necessary; and best way to remove?Thanks.
That looks helpful.Forum: Fixing WordPress
In reply to: Add conditional text to blog page.Update: Having read more on conditionals and since found another post, I tried
<?php if ( ! is_page('notes') && !is_paged()) {echo '<p>[message for first page]</p>'; } else {echo '[message for subsequent pages]'; } ?>It seems to work and as the sky hasn’t yet fallen-in on me I’ll hope it’s ok.
Forum: Fixing WordPress
In reply to: Blog not on front page – use custom template?Having re-read the hierarchy page and thinking more about this…
I have single, page, archive, search, 404 templates – so there shouldn’t be an issue with editing the index template as it should never be called.
Or have I misunderstood?
Forum: Fixing WordPress
In reply to: Blog not on front page – use custom template?Thanks.
Still learning about template hierarchy, I’m reluctant to edit the index template because it’s used as a fallback for other pages.
Forum: Fixing WordPress
In reply to: WP adds extra p tagsThanks.
Further reading suggests that if I disable it, I’ll need to manually add p and br tags to existing posts – so things are perhaps best left as-is.
UPDATE: The plugin wpautop-control appears to offer a sensible fix.
Forum: Fixing WordPress
In reply to: Rename 404 page?Thanks.
My reason for ‘that doesn’t seem to enable a change to the title’ is because it’s using the standard header – which in the theme I’m using is
<title><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php if(wp_title('', false))?></title>– and I don’t understand enough to see how the info in that article would make the required changes.I’m keen to learn more about this, and will be grateful for any advice.
And my reason for ‘configged in the core files’ is that searching the WP files shows the only instance of the phrase to be in general-template.php – it doesn’t appear anywhere else nor in the theme templates.
Esmi’s code delivered a syntax error, but I then adapted it to
<title><?php bloginfo('name'); ?> | <?php if (is_404()) {_e('file not available'); } else {wp_title('');} ?></title>– which seems to work ok, but as I’m waaaaaaaaaaaaaaaaaay beyond my knowledge here hopefully someone will tell me if it creates other problems.Forum: Fixing WordPress
In reply to: Rename 404 page?Thanks.
But, unless I’m wrong, that doesn’t seem to enable a change to the title shown in the browser – which is configged in the core files.
Forum: Fixing WordPress
In reply to: Add function? (I may be using the wrong term.)David, thanks very much. That’s really appreciated.
It’s helped me to better understand WP.
The particular theme is an adapted variant of ‘Fresh and clean’, and following your template suggestions things are now as I want.
My reason was to tidy the code, although I can now see how I can use this conditionally should the need arise.
Forum: Fixing WordPress
In reply to: Format as Site title | page titleThanks. I’d fotgotten to mention that I’ve already cloned that theme and it’s that I’m editing.
Forum: Fixing WordPress
In reply to: Add content to page of postsThanks.
Forum: Fixing WordPress
In reply to: Add content to page of postsThanks.
I’ll need to read more on ‘standard’ loop – is there a good starting point. I’m using Twentyeleven.
I hadn’t realized that was a .com link I’d bene reading, but from memory the info seems th esame as that on th e.org page I’d read days ago.
Forum: Installing WordPress
In reply to: Moved domains – failed.Thanks.
Forum: Fixing WordPress
In reply to: Image displays at size different to the html code.Answering my own query…
A browser cache issue, not a WP one.
Having, in bemusement, wondered could php/js resize the image to display at a different size, I isolated this on a test page totally independent of WP.
The cause was Firefox caching – despite shift-refreshing the page multiple times, and then emptying the cache.
I’d thought page-caching wasn’t the issue a when adding text to the page content the new text would display fine with a refresh whilst the image stayed the same. And even when changing the image size in the code, even on shift-refresh it still loaded the image as before.
And, oh what fun… clearly this is an isolated issue – as a further shift refresh now loads the revised page and any changes I make. So then, lesson learned. 😉
Forum: Fixing WordPress
In reply to: Image displays at size different to the html code.>go to settings -> media and set your thumbnail sizes.
But doesn’t that simply set the size to which they’re cropped? And from my knowledge of html, I’m confused that th esize set in the source isn’t the size at which they’re displayed.
Forum: Fixing WordPress
In reply to: Post IDThat behaviour puzzles and bugs me too.
And so does ‘Oh that’s just WP – learn to live with it, use title-based permalinks, etc.’ And too often, I’ve seen ‘it’s the database, not WP’.
1. There can be good reasons for using post IDs as links – and whereso, sequential gapless numerbering is logical.
2. And rather than ‘the database’, the issue is one of how WP interacts with it – for example, Movable Type generates no-gap numbers.