SJTR
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display only one latest post with read more linkAlso, if possible to have the read more link so I can ‘move’ it around.
Thanks!
Forum: Plugins
In reply to: [Secure Custom Fields] Do I need to create a template file for this to work?Anyone?
Forum: Fixing WordPress
In reply to: How to have multiple paragraphs with images aligned to the leftThanks for your reply.
Allright, I’ll start looking into custom fields.
If you happen to know of a tutorial for these two fields, or plugin, I’d be happy to know.
Thanks, regards
Hey,
so I tried the other options; only Highslide and Shutter are working for me.
After as well adding <?php wp_head(); ?> just before the </head> tag lightbox worked for me! So do all the other ones.
Only weird thing is – and it it’s a little off-topic – the arrangement of the images with lightbox is confusing. Sometimes it says image 1/8 but when you click on the image the next image isn’t loaded, it just closes it. And when you click on the 4th image for example you can click through all of the 8 images in a row which is weird as well.
Shutter doesn’t have this problem though, unless you might have a solution for this little thing I think I’ll stick to Shutter.
Thanks again.
Hey,
I added that to my footer.php. It’s the only file that closes the body. Now the admin bar is showing when viewing the website.
However, it doesn’t seem to change anything else. I’m running localhost so I can’t post the URL, but if you require any specific code to look at I can post it.
I’m not sure where to go from here.
Thanks, regards -S
Thanks for your reply.
I’m not sure where to put that. Nor do I understand its purpose even after reading up on it on the WordPress Codex (which has always been unclear to me).
I do have get_footer in my pages. Not sure if that’s about the same thing?
Regards -S
Forum: Fixing WordPress
In reply to: Remove automatic white space in posts/pages contentOk, so apparently there was an image and text link in my post surrounded by a h4 tag. I removed the tag and the content shifted a bit towards the top.
Then I added;
remove_filter( ‘the_content’, ‘wpautop’ );
remove_filter( ‘the_excerpt’, ‘wpautop’ );to the functions.php.
This seemed to do the trick. Now the content loaded perfectly lines up the top of the div.
EDIT: Ok this doesn’t work perfectly. The content loads to the top, but all the <p> tags disappear. So there is no more any way to use enters in the WP post editor. Unless maybe custom inserting a <p> tag in HTML mode? That seems rather too much work.
So basically just want to remove the first <p> tag.
Any ideas?
Forum: Fixing WordPress
In reply to: Remove automatic white space in posts/pages contentHi,
Well I don’t have any way to post it online right now, but I’m thinking it has to do with WP in general. Like it’s caused by the WP ‘mother’ theme. Just like when writing a post in the WP editor, you also get this white space on top of your content. Would you need to see any specific code?
I also tried controlling the <p> tag in the CSS, specific and non-specific but the top white space remains there. Only the paragraphs shift, but what I want is the whole content loaded to be in a zero position. You see, I used this bit of code:
<?php // must use a variable for page id // https://codex.www.ads-software.com/Function_Reference/get_page $id = 51; $p = get_page($id); echo apply_filters('the_content', $p->post_content); ?>
to call in post content in a custom template. Content is called in a div.
Regards