Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Not sure if its still an issue but at least for WP theme 2011 I copied the WOW PHP code and pasted it into the header.php using the (Appearance->Editor->Header) select header.php from listing on the right while in Editor. I pasted the code replacing the following code,

    <?php
    // Check to see if the header image has been removed
    $header_image = get_header_image();
    	f ( $header_image ) :
    // Compatibility with versions of WordPress prior to 3.4.
    	if ( function_exists( 'get_custom_header' ) ) {
    // We need to figure out what the minimum width should be for our featured image.
    // This result would be the suggested width if the theme were to implement flexible widths.
    $header_image_width = get_theme_support( 'custom-header', 'width' );
    	} else {
    $header_image_width = HEADER_IMAGE_WIDTH;
    					}
    					?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    				<?php
    					// The header image
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && has_post_thumbnail( $post->ID ) &&
    							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) &&
    							$image[1] >= $header_image_width ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    					else :
    						// Compatibility with versions of WordPress prior to 3.4.
    						if ( function_exists( 'get_custom_header' ) ) {
    							$header_image_width  = get_custom_header()->width;
    							$header_image_height = get_custom_header()->height;
    						} else {
    							$header_image_width  = HEADER_IMAGE_WIDTH;
    							$header_image_height = HEADER_IMAGE_HEIGHT;
    						}
    						?>
    					<img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
    				<?php endif; // end check for featured image or standard header ?>
    			</a>
    			<?php endif; // end check for removed header image ?>

    It appears to be functioning correctly at least on my end. If I am incorrect please, anyone, let me know.

    Thread Starter Tony Pratt

    (@tony-pratt)

    Originally I was hoping to use the WordPress tool export from my locahost WordPress to generate the xml and then use the WordPress import tool into my remote WordPress. For some reason that did not work correctly, as I mentioned above the WP post echoes went to the wrong div assignments on my PHP site pages.
    To investigate I went to phpMyAdmin for both servers and discovered that the term_IDs were different between the two databases.
    I eventually solved the dilemma by doing a sql dump from my localhost install and after opening the dump file and changing its internal database name to my remote WP database name along with the blog urls from localhost to my online domain I imported the dump into my remote install. That did the trick everything is working fine. It remains unexplained as to why the WP xml file did not come into the remote database correctly with the proper term_IDs. I opened the xml file with a text editor and the term_IDs were correct before the import so it was not a problem with the actual export from my localhost WP.

    Thread Starter Tony Pratt

    (@tony-pratt)

    I am using the WordPress export tool to generate the xml and the WordPress import tool to import.

    I am thinking of doing a sql dump and edit the database name within the file to match my remote database. Think that will work.

    I am a little concerned that my MAMP server version is 5.1.44 while the remote server is at version 5.5.24. Do you see any issue here?

    Thread Starter Tony Pratt

    (@tony-pratt)

    Thanks for the reply, somehow I missed your email.
    I had actually tried the copy and paste of head and body info from a slider folder I had saved to the root of my site and it appeared at the time the javascript was hosed because the images simply slid and did not contain the transitions nor were the navigation arrows visible.

    After I received your reply I went back and visited my test php page and discovered that I had failed to update the path of the .js file in the head section.

    Everything is working fine and looks very good.

    Thanks for your help,
    Tony

    Thread Starter Tony Pratt

    (@tony-pratt)

    I discovered what the issue was. After attempting some fixes including a re-install of WOW Slider I did what I should have done right out of the gate when I saw a failure to produce a slider on a post – I changed themes on the blog. After the change the sliders came into place.

    My original WOW Slider problematic theme is entitled ‘Desire’. At least for me it is not compatible with WOW.

    I regret my comment about WOW support, they can’t check against every theme.

    Anyone know how to incorporate a WOW Slider into a php page?

    Thread Starter Tony Pratt

    (@tony-pratt)

    I am not getting any assistance from WOW Slider support.

    Is anyone else experiencing issues with getting WOW Slider to work with posts? My environment is WP 3.4.1, WOW Slider 2.5 and the WOW slider 2.5.3 Plug-in download from the WP plug-in page. When the post is updated after the paste of the WOW Slider shortcode and viewed the slider does not appear while viewing the post.

    I originally mistakenly reported that I saw the shortcode while viewing the post, I meant to say that I saw the short code after leaving the HTML view and returned to the ‘visual’ view in Dashboard.

    As I mentioned nothing appears, not even an error message. I get the same results on my testing server as well as online with a Gatorhost blog.

    Any Help appreciated

    Thread Starter Tony Pratt

    (@tony-pratt)

    Put another way the same navigation menu which appears on the stock page templates take you to the linked pages when you click on the link element in a browser. However when the navigation menu appear on my custom page template it looks correct but the text which are supposed to be the links are not, they appear to be static text.

    Thread Starter Tony Pratt

    (@tony-pratt)

    I am creating some bare-bones custom page templates containing posts and the same nav_menu contained on the other wp pages. I have been able to get the post function to work along with the nav menu to display correctly with the appropriate css but the links themselves are not functioning on the custom template pages.

    Thread Starter Tony Pratt

    (@tony-pratt)

    It appears I am a little premature in saying success. The menu is there and styled but the links are not being honored. How do I bring in the functionality?

    Thread Starter Tony Pratt

    (@tony-pratt)

    I took another look at the coding this morning and realized that the div ID containing
    <?php wp_nav_menu( $args ); ?> had to be named “access” instead of what I originally had “pageMenu”. Bare with me I am fairly new at editing custom WP templates and themes.

    Thread Starter Tony Pratt

    (@tony-pratt)

    Andrew,

    Thanks, that brought in the menu but it comes in unstyled, like it does not see the css. I have gone over the syntax for the style sheet attachment and I don’t see my mistake. Anyone see the thing I am missing. Thanks again.

    <?php
    /*
    Template Name: Menu
    */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Demo Site</title>
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/style.css">
    </head>
    <body>
    <div id="wrapper">
      <div id="mainContent">
        <div id="headerContent">
        	<h1 class="weekDay">Day of the Week</h1>
        </div>
        <div id="menuContent">
            <div id="pageMenu">
                             <?php wp_nav_menu( $args ); ?>
            </div>
    
        			<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
        </div><!--end of menuContent-->
      </div><!--end of mainContent-->
    </div><!--end of wrapper-->
    </body>
    </html>
    Thread Starter Tony Pratt

    (@tony-pratt)

    Michael,
    Just got back to this project and noticed your reply just after I noticed something in DW. Inside the Bindings panel it was prompting me to set a format option which I set to the option of ‘new lines to BRs’ and now I get the proper line breaks. I had done the setup to achieve this echo to static pages several times before and never ran into this prompt or problem. Any idea what could make the difference. Thanks-Tony

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