Ondersteuning » Thema en CSS/opmaak » Response – Reacties

  • Hallo

    Ik ben bezig om mijn site Funnykareltje.org op te zetten en aan te passen. PHP is nog onbekend voor mij.

    Ik zou graag de naam “Responses” in mijn “comments.php” in “Reacties” willen veranderen, ik heb gezocht in de code maar weet niet waar ik moet beginnen. Ik heb ondertussen wel de Header code aangepast in h5

    Ook zou ik graag de groote van het lettertype(Tahoma 10) van de reacties en de naam aan willen passen.

    Dit is e code van comments.php :

    // You can start editing here -- including this comment!
    ?>
    
    <?php if ( have_comments() ) : ?>
    			<h5 id="comments-title"><?php
    			printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), WEAVER_TRANS ),
    			number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    			?></h5>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', WEAVER_TRANS ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', WEAVER_TRANS ) ); ?></div>
    			</div> <!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
    			<ol class="commentlist">
    				<?php
    					/* Loop through and list the comments. Tell wp_list_comments()
    					 * to use weaver_comment_list() to format the comments.
    					 * If you want to overload this in a child theme then you can
    					 * define weaver_comment_list() and that will be used instead.
    					 * See weaver_comment_list() in weaver/functions.php for more.
    					 */
    					wp_list_comments( array( 'callback' => 'weaver_comment_list' ) );
    				?>
    			</ol>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', WEAVER_TRANS ) ); ?></div>
    				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', WEAVER_TRANS ) ); ?></div>
    			</div><!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
    <?php else : // or, if we don't have comments:
    
    	/* If there are no comments and comments are closed,
    	 * let's leave a little note, shall we?
    	 */
    	if ( ! comments_open() ) :
    ?>
    	<p class="nocomments"><?php _e( 'Comments are closed.', WEAVER_TRANS ); ?></p>
    <?php endif; // end ! comments_open() ?>
    
    <?php endif; // end have_comments() ?>
    
    <?php comment_form(); ?>
    
    </div><!-- #comments -->

4 reacties aan het bekijken - 1 tot 4 (van in totaal 4)
  • Normaal zou je moeten werken via een vertaalfile van je theme, maar je kan dit wel aanpassen:

    <?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s'

    Om bv. “responses” te vertalen zal je de args van comment_form moeten aanpassen:

    <?php $comment_args = array(
    	'title_reply' => __( 'Antwoord', 'mijntextdomein' ),
    	'label_submit' => __( 'Publiceren', 'mijntextdomein' )
    	);
    comment_form( $comment_args );	?>

    meer info hier

    Thread starter Funnykareltje

    (@funnykareltje)

    Triple P

    ik had Response ondertussen al zelf ff aangepast :

    printf( _n( ‘Eén Reacties op %2$s’, ‘%1$s Reacties op %2$s’, get_comments_number(), WEAVER_TRANS )

    Nu moet ik de grote van het lettertype nog ff aanpassen, deze staat volgens mij in de stylesheet.css maar kan hem nog niet vinden :

    /* =Comments
    -------------------------------------------------------------- */
    #comments {
    	clear: both;
    }
    #comments .navigation {
    	padding: 0 0 18px 0;
    }
    h3#comments-title,
    h3#reply-title {
    	color: #000;
    	font-size: 20px;
    	font-weight: bold;
    	margin-bottom: 0;
    }
    h3#comments-title {
    	padding: 24px 0;
    }
    .commentlist {
    	list-style: none;
    	margin: 0;
    }
    .commentlist li.comment {
    	border-bottom: 1px solid #e7e7e7;
    	line-height: 24px;
    	margin: 0 0 24px 0;
    	padding: 0 0 0 56px;
    	position: relative;
    }
    .commentlist li:last-child {
    	border-bottom: none;
    	margin-bottom: 0;
    }
    #comments .comment-body ul,
    #comments .comment-body ol {
    	margin-bottom: 18px;
    }
    #comments .comment-body p:last-child {
    	margin-bottom: 6px;
    }
    #comments .comment-body blockquote p:last-child {
    	margin-bottom: 24px;
    }
    .commentlist ol {
    	list-style: decimal;
    }
    .commentlist .avatar {
    	position: absolute;
    	top: 4px;
    	left: 0;
    }
    .comment-author {
    }
    .comment-author cite {
    	color: #000;
    	font-style: normal;
    	font-weight: bold;
    }
    .comment-author .says {
    	font-style: italic;
    }
    .comment-meta {
    	font-size: 12px;
    	margin: 0 0 18px 0;
    }
    .comment-meta a:link,
    .comment-meta a:visited {
    	color: #888;
    	text-decoration: none;
    }
    .comment-meta a:active,
    .comment-meta a:hover {
    	color: #ff4b33;
    }
    .commentlist .even {
    }
    .commentlist .bypostauthor {
    }
    .reply {
    	font-size: 12px;
    	padding: 0 0 24px 0;
    }
    .reply a,
    a.comment-edit-link {
    	color: #888;
    }
    .reply a:hover,
    a.comment-edit-link:hover {
    	color: #ff4b33;
    }
    .commentlist .children {
    	list-style: none;
    	margin: 0;
    }
    .commentlist .children li {
    	border: none;
    	margin: 0;
    }
    .nopassword,
    .nocomments {
    	display: none;
    }
    #comments .pingback {
    	border-bottom: 1px solid #e7e7e7;
    	margin-bottom: 18px;
    	padding-bottom: 18px;
    }
    .commentlist li.comment+li.pingback {
    	margin-top: -6px;
    }
    #comments .pingback p {
    	color: #888;
    	display: block;
    	font-size: 12px;
    	line-height: 18px;
    	margin: 0;
    }
    #comments .pingback .url {
    	font-size: 13px;
    	font-style: italic;
    }
    
    /* Comments form */
    input[type=submit] {
    	color: #333;
    }
    #respond {
    	border-top: 1px solid #e7e7e7;
    	margin: 24px 0;
    	overflow: hidden;
    	position: relative;
    }
    #respond p {
    	margin: 0;
    }
    #respond .comment-notes {
    	margin-bottom: 1em;
    }
    .form-allowed-tags {
    	line-height: 1em;
    }
    .children #respond {
    	margin: 0 48px 0 0;
    }
    h3#reply-title {
    	margin: 18px 0;
    }
    #comments-list #respond {
    	margin: 0 0 18px 0;
    }
    #comments-list ul #respond {
    	margin: 0;
    }
    #cancel-comment-reply-link {
    	font-size: 12px;
    	font-weight: normal;
    	line-height: 18px;
    }
    #respond .required {
    	color: #ff4b33;
    	font-weight: bold;
    }
    #respond label {
    	color: #888;
    	font-size: 12px;
    }
    #respond input {
    	margin: 0 0 9px;
    	width: 98%;
    }
    #respond textarea {
    	width: 98%;
    }
    #respond .form-allowed-tags {
    	color: #888;
    	font-size: 12px;
    	line-height: 18px;
    }
    #respond .form-allowed-tags code {
    	font-size: 11px;
    }
    #respond .form-submit {
    	margin: 12px 0;
    }
    #respond .form-submit input {
    	font-size: 14px;
    	width: auto;
    }

    hierzo:

    h3#comments-title,
    h3#reply-title {
    	color: #000;
    	font-size: 20px;
    	font-weight: bold;
    	margin-bottom: 0;
    }
    Thread starter Funnykareltje

    (@funnykareltje)

    Triple P

    Het gaat niet om de grote van de Title maar om de groote van het lettertype van de reacties op de pagina, deze is 12/14 volgens mij en die wil ik 10 hebben. Ik ben zelf weer ff aan het zoeken en veranderen geweest maar kan de juiste niet vinden.

    http://www.funnykareltje.nl/Forum/comment.PNG

4 reacties aan het bekijken - 1 tot 4 (van in totaal 4)
  • Het onderwerp ‘Response – Reacties’ is gesloten voor nieuwe reacties.