Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi alistairwilson,

    I’ve adjuted the code above (which changes the title label, field labels, and website field) to include your changes. I’ve added the ‘comment_notes_before’ argument to include the email address and required fields info, and the ‘label_submit’ arg for changing the text of the submit button. I haven’t tested the code, but it should work fine.

    <?php
    $commenter = wp_get_current_commenter();
    $req = get_option( 'require_name_email' );
    $aria_req = ( $req ? " aria-required='true'" : '' );
    
    $required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
    $comment_form_fields = apply_filters(
    	'comment_form_default_fields',
    	array(
    		'author' => '<p class="comment-form-author">' .
                        '<label for="author">' . __( 'Your Name' ) . '</label> ' .
                        ( $req ? '<span class="required">*</span>' : '' ) .
                        '<input id="author" name="author" type="text" value="' .
                        esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />' .
                        '</p><!-- #form-section-author .form-section -->',
    		'email'  => '<p class="comment-form-email">' .
                        '<label for="email">' . __( 'Your Email' ) . '</label> ' .
                        ( $req ? '<span class="required">*</span>' : '' ) .
                        '<input id="email" name="email" type="text" value="' .
                        esc_attr(  $commenter['comment_author_email'] ) .
                        '" size="30"' . $aria_req . ' />' .
                        '</p><!-- #form-section-email .form-section -->',
    		'url'    => ''
    	)
    );
    
    $comment_args = array(
    	'fields'               => $comment_form_fields,
    	'comment_field'        => '<p class="comment-form-comment">' .
                                  '<label for="comment">' . __( 'Let us know what you have to say:' ) . '</label>' .
                                  '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>' .
                                  '</p><!-- #form-section-comment .form-section -->',
    	'comment_notes_before' => '<p class="comment-notes">' .
                                  __( 'Your email address will not be published or shared.' ) .
                                  ( $req ? $required_text : '' ) .
                                  '</p>',
    	'comment_notes_after'  => '',
    	'label_submit'         => 'Submit your comment',
    	'title_reply'          => 'Please Post Your Comments & Reviews'
    );
    
    comment_form( $comment_args );
    ?>
    carbis

    (@carbis)

    Unfortunately, building a functional WordPress theme isn’t as simple as renaming your old website. Here’s a few links that might help you understand how to get started building your theme:

    http://codex.wordpress.org/Theme_Development
    http://codex.wordpress.org/Template_Hierarchy
    http://themeshaper.com/2009/06/22/wordpress-themes-templates-tutorial/

    carbis

    (@carbis)

    Hi Fadhill,

    Sorry I’m not 100% sure what you mean. Is your WordPress theme a custom built theme, or a theme that someone else made that you’re using. If it’s not custom, what is the name of the theme?

    If it is custom, you may have a problem with the files in your theme. You will need to make sure you have a template file to handle the news page. See this chart for reference:
    http://codex.wordpress.org/Template_Hierarchy

    If you’re still stuck, you may need to get someone to look at your theme files to help you out. This forum isn’t used for paid help – but I’m happy to point you in the right direction if you contact me directly.[email address removed]

    carbis

    (@carbis)

    Is it still there when you use the twentyeleven theme?

    carbis

    (@carbis)

    Can you provide a link to your website?

    carbis

    (@carbis)

    1. Download the Flexx theme again
    2. Delete the Flexx theme from /wp-content/themes (or make a backup if you have made other changes that you want to keep)
    3. Upload the new Flexx theme to your /wp-content/themes directory
    4. Enable it in WordPress Appearance > Themes

    carbis

    (@carbis)

    Hey amatok,

    Have you tried downloading the Flexx Bold theme again and replacing your current version with a fresh version?

    carbis

    (@carbis)

    🙂 No problem. Glad I could (sort of) help.

    carbis

    (@carbis)

    The default post formatting from the post.php template file will be used.

    If you want to customize the post formatting for your category pages:
    – Create a new file: post-category.php
    – Copy/Paste the content of post.php to post-category.php
    – Edit and customize the post-category.php file for your needs.

    Learn more about the get_template_part() function:
    http://codex.wordpress.org/Function_Reference/get_template_part

    carbis

    (@carbis)

    Hi Jeff,

    Try this:

    <?php
    $comment_args = array(
    	'fields' => apply_filters(
    		'comment_form_default_fields', array(
    			'author' => '<p class="comment-form-author">' .
    				'<label for="author">' . __( 'Your Name' ) . '</label> ' .
    				( $req ? '<span class="required">*</span>' : '' ) .
    				'<input id="author" name="author" type="text" value="' .
    				esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />' .
    				'</p><!-- #form-section-author .form-section -->',
    			'email'  => '<p class="comment-form-email">' .
    				'<label for="email">' . __( 'Your Email' ) . '</label> ' .
    				( $req ? '<span class="required">*</span>' : '' ) .
    				'<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) .
    				'" size="30"' . $aria_req . ' />' .
    				'</p><!-- #form-section-email .form-section -->',
    			'url'    => ''
    		)
    	),
    	'comment_field' => '<p class="comment-form-comment">' .
    		'<label for="comment">' . __( 'Let us know what you have to say:' ) . '</label>' .
    		'<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>' .
    		'</p><!-- #form-section-comment .form-section -->',
        'comment_notes_after' => '',
        'title_reply' => 'Please Post Your Comments & Reviews'
    );
    comment_form( $comment_args );
    ?>
    carbis

    (@carbis)

    Hey Fadhill.

    Assuming you’re using an existing theme, it’s pretty simple. Just go to Settings > Reading. Then change “Front page displays” to a static page. Choose your home page for the front page, and choose your news page for the posts page.

    Hope that helps. 🙂

    carbis

    (@carbis)

    Can you post the content of your footer.php, and the code you want to use for your sound cloud player?

    To achieve the result you want, you will probably need to add some lines to your style.css file as well. It should be as simple as adding this to your footer:

    <div class=”clear”></div>
    <div id=”soundcloud”>
    <img src=”YOUR IMAGE HERE” alt=”Soundcloud” />
    <iframe width=”100%” height=”166″ scrolling=”no” frameborder=”no” src=”YOUR SOUNDCLOUD SOURCE”></iframe>
    <div class=”clear”></div>
    </div>

    And this to your style.css:
    #soundcloud img,
    #soundcloud iframe {
    float:left;
    }
    #soundcloud img {
    margin-right: 10px;
    }

    carbis

    (@carbis)

    You probably want to create a child theme to do this (pretty simple – check this out: http://codex.wordpress.org/Child_Themes )

    In your child theme copy over the content.php file from twenty eleven and you can edit lines 28 – 32 to adjust what is displayed in this section. You will probably want to use the comments_popup_link function, you can read about it here:
    http://codex.wordpress.org/Function_Reference/comments_popup_link

    You would need to do this for all the content-*.php pages.

    Then you just need to edit the styles for the comments link. Apply your styles in style.css to .entry-header .comments-link a. The base styles for this are found from line 1024 in the twentyeleven style.css file.

    If you just wanted to edit the picture:
    1. In your child theme create a new folder called images
    2. Put your edited background image in the images folder you just made
    3. Add this line to your child theme style.css:
    .entry-header .comments-link a {
    background: #eee url(images/NEW-BACKGROUND-IMAGE.PNG) no-repeat;
    }
    (you could change the #eee to the same colour as your background, too)

    carbis

    (@carbis)

    Apologies on the late reply.

    This is to do with the way child element margins effect the parent element position in the box model. The space is caused by the margin of the #site-title element inside the header. It’s called ‘collapsing margins’. There’s some good info on it here: http://www.w3.org/TR/CSS21/box.html

    The fix is simply:
    #site-title {
    margin: 0;
    }

Viewing 14 replies - 1 through 14 (of 14 total)