Forum Replies Created

Viewing 15 replies - 16 through 30 (of 65 total)
  • Thread Starter rwwood

    (@rwwood)

    Plugins don’t seem to be the issue. I’ve disable all on the site other than yours, and FireFox is still not working properly. Chrome does, and I’m happy to go back to using that. If you discover an issue with Firefox on this platform, I’d like to know so I’ll leave this marked unresolved for now.

    Thread Starter rwwood

    (@rwwood)

    I didn’t get that far. I will disable other plugins to see if I can figure out which are causing problems. It does work on Google Chrome, though.

    Thanks.

    Thread Starter rwwood

    (@rwwood)

    I’m running PCLinusOS, a linux distribution with Firefox 45.0.1. There may be another plugin interfering, which I’ll check, but it seems to be running ok on Google Chrome on the same machine, but not on Konqueror, which I don’t like anyway.

    Thanks.

    Thread Starter rwwood

    (@rwwood)

    Yes, it’s related to doing a search on the WP site. Elsewhere searches seem ok, but not, for example searching on these forums.

    Thread Starter rwwood

    (@rwwood)

    No, that doesn’t change anything. I still am not getting the player. Don’t spend a lot of time on this, though as I think I’ve found another solution.

    Thanks.

    Thread Starter rwwood

    (@rwwood)

    Actually, here’s the template.php file for the listing page.

    <?php
    /**
     *	This is the template for displaying archive sermons.
     *
     *	@package		Builder Block Church
     *	@subpackage		Templates
     *	@author			Justin Kopepasah
     *	@since			1.1.0
     *
     *	DO NOT EDIT THIS TEMPLATE.
     *
     *	If you wish to use a custom template, copy this template over
     *	to your theme and rename the template to archive-sermon.php.
    */
    
    function render_content() {
    	global $post;
    ?>
    	<?php if ( have_posts() ) : ?>
    		<div class="loop sermon-archive">
    			<div class="loop-header">
    				<h4 class="loop-title"><?php _e( 'Sermons', 'it-l10n-builder-block-church' ); ?></h4>
    			</div>
    
    			<div class="loop-content">
    				<?php while ( have_posts() ) : the_post(); ?>
    					<?php $audio = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'audio' ) ); ?>
    					<div id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>>
    						<div class="entry-header">
    							<h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    							<span class="sermon-date"><?php printf( __( ' Posted on %s', 'it-l10n-builder-block-church' ), get_the_date() ); ?><span>
    							<span class="sermon-tags"><?php printf( __( ' in %s', 'it-l10n-builder-block-church' ), get_the_term_list( $post->ID, 'sermon_tag', '', ', ', '' ) ); ?></span>
    							<?php if ( ! empty( $audio ) ) : ?>
    								<?php _e( '| MP3', 'it-l10n-builder-block-church' ); ?><?php if ( count( $audio ) >= 2 ) { echo 's'; } else { echo ' -'; } ?>
    								<?php foreach ( $audio as $attachment_id => $attachment ) : ?>
    									<span class="sermon-mp3"> <?php if ( count( $audio ) >= 2 ) { echo "-"; } ?> <a href="<?php echo wp_get_attachment_url( $attachment_id, 'full' ); ?>" target="_blank" title="<?php echo wp_get_attachment_link( $attachment_id, '' , false, false, ' '); ?>" rel="audio-file"><?php echo $attachment->post_title; ?></a></span>
    								<?php endforeach; ?>
    							<?php endif; ?>
    						</div>
    						<div class="entry-content">
    							<?php if ( has_post_thumbnail() ) : ?>
    								<?php the_post_thumbnail( 'sermon-archive', array( 'class' => 'alignright' ) ); ?>
    							<?php endif; ?>
    							<?php the_content( __( 'View Sermon &rarr;', 'it-l10n-builder-block-church' ) ); ?>
    						</div>
    					</div>
    
    					<?php comments_template(); // include comments template ?>
    				<?php endwhile; // end of one post ?>
    			</div>
    
    			<div class="loop-footer">
    				<!-- Previous/Next page navigation -->
    				<div class="loop-utility clearfix">
    					<div class="alignleft"><?php previous_posts_link( __( '&laquo; Previous Sermon', 'it-l10n-builder-block-church' ) ); ?></div>
    					<div class="alignright"><?php next_posts_link( __( 'Next Sermon &raquo;', 'it-l10n-builder-block-church' ) ); ?></div>
    				</div>
    			</div>
    		</div>
    	<?php else : // do not delete ?>
    		<?php do_action( 'builder_template_show_not_found' ); ?>
    	<?php endif; // do not delete ?>
    <?php
    }
    
    add_action( 'builder_layout_engine_render_content', 'render_content' );
    do_action( 'builder_layout_engine_render', basename( __FILE__ ) );

    Thread Starter rwwood

    (@rwwood)

    It’s from a paid theme by iThemes. If you tell me what I’m looking for, I’ll try to find the needed code.

    Thread Starter rwwood

    (@rwwood)

    Yes, the mp3 files are attached to each of the posts on the listing page. There is a link to the mp3 that opens an ugly player in another tab, but I’d like to see your player there instead.

    Thread Starter rwwood

    (@rwwood)

    Yes, I knew that, and finally figured out that for some reason there was an extra a href tag outside the divs. I remedied that and now have the following:

    <div class='image_wrap alignleft'><div class='wp-caption'><img src="https://www.richardwwood.com/wp-content/uploads/2010/05/honey-jar1.png" width="325" height="289" alt="Honey jar" title="" /></div></div>

    which to me looks fine. Nevertheless, the validator is giving me:

    document type does not allow element “div” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag

    <p><div class=’image_wrap alignleft’><div class=’wp-caption’><img src=”https://w…

    The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as “<p>” or “<table>”) inside an inline element (such as ““, “<span>”, or “<font>”).

    Thread Starter rwwood

    (@rwwood)

    I figured this out right after I posted my original. I had forgotten that I installed another Tinymce plugin. When I removed that, all the buttons got added. Duh.

    Thanks.

    Thread Starter rwwood

    (@rwwood)

    I figured out the problems from this post and made the corrections.

    Thanks for you suggestions.

    Thread Starter rwwood

    (@rwwood)

    I’ve read over and tried everything there and related, however I think the problem is related to the fact that I originally combined some of the twenty ten theme with another (Chocotheme).

    This is what I have in the top of the sidebar.php and functions.php

    <div id="sidebar">
    	<ul>
    		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    			<li>
    				<?php get_search_form(); ?>
    			</li>
    
    			<?php if ( is_404() || is_category() || is_day() || is_month() ||
    						is_year() || is_search() || is_paged() ) {
    			?> <li class="metaplace">
    
    etc.
    function rww_widgets_init() {
    	// Default Sidebar.
    register_sidebar(array(
        'name' => 'sidebar',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
    
    	// Category Sidebar.
    register_sidebar(array(
        'name' => 'sidebar-category-sidebar',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
    
    	// Single Post Sidebar.
    register_sidebar(array(
        'name' => 'sidebar-single',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));
    }
    /** Register sidebars by running rww_widgets_init() on the widgets_init hook. */
    add_action( 'widgets_init', 'rww_widgets_init' );

    Not sure that helps.

    Forum: Fixing WordPress
    In reply to: Coding problem
    Thread Starter rwwood

    (@rwwood)

    It turned out to be a missing curly bracket. Duh.

    Forum: Fixing WordPress
    In reply to: Coding problem
    Thread Starter rwwood

    (@rwwood)

    That didn’t work, so here’s the link to the file on pastebin.com

    link on pastebin

    Thread Starter rwwood

    (@rwwood)

    Finally I figured out how to fix this, albeit in a way that I don’t think should be necessary.

    I changed the category name to “Wolves in Sheep& # 039;s Clothing” but without the spaces in the code for the apostrophe. It now displays as it should (Wolves in Sheep’s Clothing) and also displays a list of the posts within just that category. I used Digital Raindrops suggestion to use the slug rather than the category name in the category.php file, too.

    Thanks

Viewing 15 replies - 16 through 30 (of 65 total)