date / time link in comments
I want to disable the link in the date / time stamp for comments, but can't find where to do that. I still want the date / time stamp to show, just not be a link. Suggestions, please.
|
Janey73,
Did you know, and I just noticed this the other day on a site with a lot of comments, that clicking on the date scrolls the page of comments? The comment moves to the top of the page. Handy feature requiring less use of the mouse's scroll wheel. Hope this helps. |
You would have to replace
PHP Code:
PHP Code:
but as fromtheranks mentioned, the link can be useful, just so you know |
Thanks for an amazing theme!!
What if I would like to change the color of the date/time line in each posted comment. Where would I make that change? (I've been able to change author and posted comments lines in CSS Inserts using this BFA Post: http://forum.bytesforall.com/showthr...style+comments) Also: How would I put the AUTHOR(of comment) + DATE/TIME on the same line so it reads something like: Posted by Zona on March 7th, 2010 at 8:30pm And last question: How would I move this newly created line below the actual comment content so it reads something like this: Incredible post. I can't wait for the next one! Posted by Zona on March 7th, 2010 at 8:30pm |
If you look at the generated source of a page with comments, you will see something like this
HTML Code:
<a name="comments"></a><!-- named anchor for skip links --> |
Apologies -- I'm a little slow on this one... so to change the date color and rearrange the order of the content... I need to write code to put in CSS Inserts and you suggest creating that code from the example of what I see when I view the source code on a page running comments -- is that correct?
Thank you. |
You will create a CSS selector and CSS rules to affect the HTML element and put them in the CSS Inserts area. If you think of number of things that can be styled on a page, the number is staggering because every HTML element could be uniquely styled.
Atahualpa gives you the ability to change a lot of them thru it's options, but not all of them. Each option actually is put into a CSS Selector/rule for the site. Since Atahualpa doesn't have options for every single possible element, it has the 'CSS Inserts' area so you can add selectors/rules that you need for your site. In the example above, if I wanted to change the date/time to show up BLUE, I would code HTML Code:
div.comment-meta a { color: blue;} HTML Code:
div.comment-meta a span a{ color: black;} |
Hi JD: thanks for replying so quickly. I will work on this and let you know my progress...
Many thanks. |
Hi JD: Ok - I failed at this challenge and am rethinking what I want and can do. I'd like to just delete the time from my commenter's responses -- can I do this by deleting the section referring to time in comments_paged.php?
My commenter's responses now read: March 11th, 2010 at 11:32pm I'd like it to read: March 11th, 2010 My comments_paged.php reads: <span class="commentdate"> <?php // Comment Date and Time printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?> </span> I would change it to read: <span class="commentdate"> <?php // Comment Date printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa'))?> </span> This is so simple... but, am I even close??? :-) Thanks, Zona |
looks like it will work, give it a try :)
|
Hi JD: The edit I proposed didn't work for me. I also edited another line in comments_paged.php that referred to time:
<?php // Comment Date and Time printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?> and changed it to: <?php // Comment Date printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa')) ?> but still no success :confused: Any ideas? Thanks, Zona |
Still working on this one... double-checked to see that I had taken all commands for time in comments_paged.php. Looks like I got everything...
Does anyone have any suggestions? |
try changing it to:
HTML Code:
<?php // Comment Date |
Hi JD: Thanks for the reply. Unfortunately, that didn't work for me. (I saw two instances for code on Comment Date and I changed both places to the code you gave me.)
Any other ideas? :) |
edit bfa_custom_comments.php and change line 23 (in version 3.4.6) from
HTML Code:
<?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?></a> HTML Code:
<?php printf(__('%1$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa'))) ?></a> |
You got it JD! Worked perfectly (in version 3.4.4)!!
Thank you very much! |
All times are GMT -6. The time now is 05:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.