Forums

Is WordPress the cms to use? (9 posts)

  1. simondamast
    Member
    Posted 3 years ago #

    Hi

    1. I have a guest house site which someone wants me to upgrade http://www.poplartreelodge.co.za for them, at the moment it is a static site. I suggested a cms site so they can update it themselves. (They are not after a blog although I may be able to talk them into one once it is in WP) is WP a good cms to use for this?
    2. Also on the pages (its different on all pages) there is a picture mouse over effect using tables and Java... this will I guess convert to content, how will the admin panel handle something like this as each page's head needs to be different for pre loading images
    3. Any other tips tricks you can offer would be a big help, I have not designed my own theme before so this is a first for me...

      Thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    is WP a good cms to use for this?

    I think so. I've used it on a number of client sites and plan to continue doing so for the foreseeable future.

    how will the admin panel handle something like this as each page's head needs to be different for pre loading images

    I'd suggest editing header.php and using the conditional is_page() to ensure that each of these pages has its own header class that can be styled via CSS.

  3. simondamast
    Member
    Posted 3 years ago #

    So I've put the table into the content (using the admin backend) and inserted the thumbnail pictures.. where and how do I get the mouse over effect to work?

    At the momnet I head is as it was in the html doc as well as the html in the doc itself at the picture but unfortunatly it isn't working??

    Any ideas?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I've put the table into the content

    The table needs to be in header.php or in an external file that is called within header.php.

  5. simondamast
    Member
    Posted 3 years ago #

    ok ic, but if the table is different for each page?

    Does that mean a seperate header.php for each page? Yes cause thats what you said earlier :)

    So now to understand is_page()?

    So I have a page.php file which calls the header.php (which has the table and the java) so how does it call a different header for each page? Obviously using is_page()? (thinking allowed) :)

    Does this sound right, anything I may have missed, or need to add?

    Thanks

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Does that mean a seperate header.php for each page?

    Not as such. Unlike get_sidebar, get_header can only call header.php. But you could use include (TEMPLATEPATH.'/tableA.php') to selectively call different header tables into a single header.php file.

    Set up a folder within your theme file called header-tables and use this to store markup for the different header tables. Then use something like:

    <?php
    if(is_page('10') include (TEMPLATEPATH.'/header-tables/tableA.php');
    elseif(is_page('20') include (TEMPLATEPATH.'/header-tables/tableB.php');
    else include (TEMPLATEPATH.'/header-tables/tableC.php');
    ?>

    is_page will take a page id, a page title or a page slug. Or even an array containing a mixture.

  7. simondamast
    Member
    Posted 2 years ago #

    I keep getting a

    Parse error: syntax error, unexpected T_INCLUDE in C:\wamp\www\wordpress\wp-content\themes\Simon\header.php on line 23

    error can anyone tell me why?Line 23 is the the line starting with "if"

    <html>
    
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
    
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php //comments_popup_script(); // off by default ?>
    	<?php wp_head(); ?>
    
    <?php
    if(is_page('Welcome') include ( TEMPLATEPATH. '/Headertables/mainheader.php');
    elseif(is_page('rooms') include ( TEMPLATEPATH. '/headertables/roomsheader.php');
    else include (TEMPLATEPATH.'/headertables/mainheader.php');
    ?>
  8. simondamast
    Member
    Posted 2 years ago #

    its fixed thanks

  9. rabbitwordpress
    Member
    Posted 2 years ago #

    This is really good if you want to change the header banner image on different pages :

    http://wordpress.org/extend/plugins/dynamic-headers

Topic Closed

This topic has been closed to new replies.

About this Topic