I see you still trying to solve this.
Put the following in your css child
article header h1 {border-bottom:1px dashed #ccc;}
Thread Starter
k9226
(@k9226)
Thanks Kevin for all of the help.
I copy and pasted the code above in the child theme and nothing happened. Is there something I should be replacing?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
If Kevin doesn’t respond, may you Pastebin.com the HTML of the page? You can find the HTML when you view the page, right click (assuming you’re on Windows), then select ‘View source’.
I set up your child theme in my sand box to test it:
I put
article header h1 {
line-height:1.2em;
border-bottom:1px dashed #ccc;
}
and it worked fine. I added this right under the @import line.
Note that I added the line height because the line was showing up directly on the bottom of the title.
Thread Starter
k9226
(@k9226)
Kevin —
I pasted exactly what you did above and put it directly under the @import line and nothing happened. I must be doing something wrong.
Thread Starter
k9226
(@k9226)
Andrew –
I’m using a mac.
Thread Starter
k9226
(@k9226)
Kevin –
I’m beginning to think nothing is working because of the loop file I have above? Since I moved the date, could this have interfered with this dotted line business?
I don’t think so because I made the same change and it is working for me. So obviously something is different in your code….we just have to find it.
I’ll take a closer look at the loop file.
Could you do what Andrew suggested please.
Also did you change any files before you started using the child theme?
Note for Andrew : I helped @k9226 on a previous problem when they wanted the date to appear below the title. See that post and the solution I came up with.
It looks to me like you did not move the three lines correctly in the loop.php :
The code in pastebin at line 46 is :
<time datetime="<?php the_date('c'); ?>" pubdate><?php print get_the_date(); ?></time>
<?php endif; ?>
and it should be :
<?php if ( get_post_type() !== 'page' ): ?>
<time datetime="<?php the_date('c'); ?>" pubdate><?php print get_the_date(); ?></time>
<?php endif; ?>
Line 35 needs to be moved down.
Also you should be making these changes in your child theme so if you are not copy loop.php into your child theme and make the changes there. Put a copy of the original loop.php back in the blaskin directory if you were editing it directly.