- This topic has 36 replies, 3 voices, and was last updated 8 years, 10 months ago by Sakin.
-
AuthorPosts
-
June 23, 2015 at 2:31 am #59934helpmeParticipant
on the leave a comment form can I change leave a “reply” to leave a “comment”?
How do I remove the “Website” line ?
thanks
June 24, 2015 at 10:06 am #60031SakinKeymaster@helpme: It’s same all the page/post title will have h1 tags.
To change the text and remove the website line, you need to build child theme and edit the comment form.
July 31, 2015 at 1:24 pm #61875christianeMemberPlease can you explain to me where exactly to edit the comment form to change the title from “Leave a reply” to something else? Thanks!
August 2, 2015 at 12:32 am #61947SakinKeymaster@christiane: Which theme are you using it as I don’t see Leave a reply in Catch Responsive Theme.
August 2, 2015 at 11:23 am #61967christianeMemberHi Sakin, thanks for answering. We use theme Adventurous 1.6.1
August 3, 2015 at 7:35 am #61996SakinKeymaster@christiane: For Adventurous theme, please use support forum at http://catchthemes.com/support-forum/forum/adventurous-free/
Adventurous Theme, uses default contact form from WordPress. So, to change that, you need to create child theme. For child theme refer to http://catchthemes.com/blog/create-child-theme-wordpress/ and then copy comments.php file to your child theme and replace
<?php comment_form(); ?>
with the following code, where you can replace ‘Leave a Reply’ text
<?php comment_form(array('title_reply'=>'Leave a Reply, adventurous')); ?>
August 3, 2015 at 11:13 pm #62030christianeMemberPerfect help! Thanks a lot!!!
September 11, 2015 at 7:44 pm #66703christianeMemberHello Sakin,
I have a question regarding responsive table layout. I want to apply the following code (s.b.) only to certain table layouts, not to all. But when I add the code to the custom css it changes all tables. How can I exclude a table layout from the responsive changes?Thanks for your help
Christiane@media screen and (max-width: 600px) { table {width:100%;} thead {display: none;} tr:nth-of-type(2n) {background-color: inherit;} tr td:first-child {background: #f0f0f0; font-weight:bold;font-size:1.3em;} tbody td {display: block; text-align:center;} tbody td:before { content: attr(data-th); display: block; text-align:center; } }
September 12, 2015 at 10:03 pm #66730SakinKeymasterHello Christiane,
Sorry, I don’t get it what you mean. Your css will be valid only for the screen resolution less then 601px. So, if you want that only in large screen. then you need to change your
@media screen and (max-width: 600px) {
to
@media screen and (min-width: 1024px) {
here we change from max width to minimum width and then change 1024px to width you want.
September 19, 2015 at 11:37 am #67125christianeMemberSorry, I was mistaken. I had the impression that the the @media … applies to single elements, not to the complete site. I found a solution to work around and make the pages fit for smaller displays (“overflow:scroll;” for only one table – the other one due to its design can stay as it is).
September 20, 2015 at 1:39 am #67150christianeMemberHi Sakin,
another question (because your answers are simply too good!): How can I add a shortcode for comments count for individual pages? I found this following code, but it does not show the “if comments=0 than ‘no comments yet'” when I use the shortcode [comments id=”21″]
Do you have a tipp how to alter the code or have another clever one?
Thanks again and again … 😉
Christianefunction comments_shortcode($atts) {
extract( shortcode_atts( array(
‘id’ => ”
), $atts ) );$num = 0;
$post_id = $id;
$queried_post = get_post($post_id);
$cc = $queried_post->comment_count;
if( $cc == $num || $cc > 1 ) : $cc = $cc.’ comments’;
else : $cc = $cc.’ comment’;
endif;
$permalink = get_permalink($post_id);return ‘‘ . $cc . ‘‘;
}
add_shortcode(‘comments’, ‘comments_shortcode’);September 20, 2015 at 3:49 pm #67158SakinKeymaster@christiane: For this type of functions, either you need to add it by building child theme and adding it in child theme functions.php file or you need to add it from plugin.
September 20, 2015 at 3:57 pm #67159christianeMember@Sakin: I know, but I was hoping that you can recommend a plugin for this kind of shortcodes. Or you could tell me how to alter the existing code I sent you that the result is when no comments = “0 comment”. Can you???
September 21, 2015 at 3:39 pm #67202christianeMemberDear Sakin, never mind. I found another snippet that will do. Thanks anyway!
ChristianeSeptember 21, 2015 at 9:50 pm #67217SakinKeymaster@christiane: Cool that you found it.
January 19, 2016 at 2:12 am #83176helpmeParticipantHi my website is perfecting50.co.uk when looking at it on an iPhone the header does not adapt and therefore the text of the site does not fill the phone screen. Is there an CSS code I can add (instead of writing a child theme which I cannot do) ? Would much appreciate your help. Thank you
January 19, 2016 at 8:56 am #83197SakinKeymaster@helpme: It’s because of the following css in your Custom CSS Box:
/* site title font size */ .site-title { font-size: 75px; } /* sub title font size and italic */ .site-description { font-size: 34px; font-style: italic; }
So, the solution is. Either you change the font only for large screen or have smaller font for small screen.
Here is the css for smaller screen with screen resolution maximum to 767px, you can add the following css:
@media screen and (max-width: 767px) { /* site title font size */ .site-title { font-size: 28px; } /* sub title font size and italic */ .site-description { font-size: 22px; } }
-
AuthorPosts
- The topic ‘Enter custom CSS’ is closed to new replies.