Jelly92
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Is the word 'advert' or 'ad' not allowed in the code?Ah…haha…yes. Thanks very much.
Forum: Themes and Templates
In reply to: Comments won't display on homepageOkay, thanks.
I had a look at the comment_template file (commentS doesn’t seem to exist, weirdly). If this line is commented out, the comments show:
if ( !(is_single() || is_page() || $withcomments) || empty($post) ) return;Might use your solution anyway though, as I’m not completely sure what the above code does and it might not be a good idea to disable it…
Forum: Themes and Templates
In reply to: Comments won't display on homepageIt’s my own theme. Adding that code to the homepage does work, though. Would you mind explaining why that code is needed, when the comments display fine on the single post page (the code for the post part and comments section is almost identical for these – homepage code is shown in the link in my original post)?
Thanks for your help 🙂
Forum: Themes and Templates
In reply to: Targeting comment replies in stylesheetAh, see, I need that there for the comment form underneath the comments. (Don’t want it butting up against the side) But the small ‘reply’ buttons underneath each comment need to follow a different rule. That’s the issue I’m trying to solve.
Forum: Themes and Templates
In reply to: Targeting comment replies in stylesheetWell, it’s quite large – I’ve pasted the relevant parts:
http://pastebin.com/jHnen095Forum: Themes and Templates
In reply to: Targeting comment replies in stylesheetOkay – hope I’ve got the right link:
http://pastebin.com/Tg1Xt6BLAnd screenshot:
http://s1278.photobucket.com/user/glucy/media/comments_zpsff5c4fbf.jpg.html(Everything in div class ‘reply’ is in red to make it easier to see what’s going on… at least, it helps me)
Forum: Themes and Templates
In reply to: Targeting comment replies in stylesheet:/ Sorry, it’s offline at the moment. What do you need to see? I can post any code you need and take screenshots?
Forum: Themes and Templates
In reply to: Targeting comment replies in stylesheetThanks! (The theme isn’t downloaded, it’s my own – sorry, I should have specified)
Now I’ve managed to target the ‘children’ class, I have another related question… I needed to put the comment form in a div as it needed a margin on the left. It appears the small reply buttons on each comment, however, are included in this function, meaning they are affected by this also, making them look quite odd… can you think of a solution for this?
Forum: Themes and Templates
In reply to: Need a page which displays one category/tag typeNever mind, problem solved.
Forum: Themes and Templates
In reply to: Using multiple stylesheets with media queriesAh… yep, it works now. Thanks so much 🙂
Forum: Themes and Templates
In reply to: Using multiple stylesheets with media queriesWell, it’s just this at the moment:
<?php function load_scripts() { wp_register_style( 'mystyle', get_template_directory_uri() . '/style.css', null, null, '?screen and (min-width: 730px)' ); wp_register_style( 'mymobilestyle', get_template_directory_uri() . '/mstyles.css', null, null, '?screen and (max-width: 729px)' ); wp_enqueue_style( 'mystyle' ); wp_enqueue_style( 'mymobilestyle' ); } add_action( 'wp_enqueue_scripts', 'load_scripts' ); ?>And the code for my Header page, in case the problem is there:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Title</title> <?php wp_head(); ?> </head> <body> <header><img src="<?php bloginfo('template_directory'); ?>/images/picture.jpg" alt="pretty picture"/></header>Forum: Themes and Templates
In reply to: Using multiple stylesheets with media queriesIt only has what you told me to put in it, should there be more?
Forum: Themes and Templates
In reply to: Using multiple stylesheets with media queriesOkay, I’ve changed that. It still doesn’t seem to be working.
Forum: Themes and Templates
In reply to: Using multiple stylesheets with media queriesAh – no, I didn’t know about that.
I’ve put it in and am getting this warning:
call_user_func_array() expects parameter 1 to be a valid callback, function ‘gemstones_scripts’ not found or invalid function nameForum: Themes and Templates
In reply to: Using multiple stylesheets with media queriesOkay, done that, but it still won’t work :/ In case it’s relevant, if I take the stylesheet link out of the header file it doesn’t load any stylesheets at all, either.