Forum Replies Created

Viewing 15 replies - 1 through 15 (of 162 total)
  • p=principles: Is the equal sign between p and principles a typo?

    So, I think it is the fast way to solve the probrem that you tell us the URL.

    at the top of the paragraph with id = "p=principles"

    Make sure that id="p-principles".

    Notice:
    If you write HTML like this:

    <p id="p-principles">
    <span id="principles">text</span> text text
    </p>

    When you mouse over #principles, the paragraph #p-principles slides up and is hidden. And #p-principles will never be able to slide down and be shown.

    <?php
    $link = get_post_meta( get_the_ID(), 'links', true );
    wp_list_bookmarks(
      "categorize=0&category=$link&before=<span>&after=</span>&show_images=1&show_description=1&orderby=url"
    );
    ?>

    default.css line92〜
    a.logo{background:url('../images/logo.png')

    is overwritten by

    <style type="text/css">
    a.logo{background:url('http://www.whitakerblackall.com/wp-content/themes/musaic/musaic/images/chester.jpg') no-repeat;}
    </style>

    in HTML.

    Delete above code in header.php

    <?php
    query_posts('cat=7&posts_per_page=3');
    if(have_posts()) :
      while(have_posts()) :
        the_post();
        ?>
        <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
          <h2><?php permalink(); ?></h2>
          <div class="entry">
          <?php
          $img = get_post_meta($post->ID, 'Featured Thumbnail', true);
          ?><img src="<?php echo $img; ?>"/><?php
          the_content('Read More');
          ?>
          </div>
        </div>
        <?php
      endwhile;
    endif;
    wp_reset_query();
    ?>
    <?php if(iS_category() || is_front_page() /* || is_home() */) : ?>
      <div class="post-content"><?php the_excerpt('Read the rest of this entry »'); ?></div>
    <?php else : ?>
      <div class="post-content"><?php the_content(); ?></div>
    <?php endif; ?>

    Rename ‘custom video-display page’ to category.php
    and use main loop only:

    while(have_posts()) :
      the_posts();
      /* do stuff */
    endwhile;

    Below outputs category link:
    <a href="<?php echo get_category_link(3 /* category ID */) ?>">Videos</a>

    If you have other category pages,
    create category.php and edit it like:

    $post = $wp_query->post;
    if(is_category(array(3, 4, 5))){ // for Videos, Dogs and Cats
     include(TEMPLATEPATH . '/cat-videos.php'); // if filename is category-videos.php, it will not work.
     } else if(is_category(array('sounds', 'sounds-sub'))){
     include(TEMPLATEPATH . '/cat-sounds.php');
     } else if(is_category(array(123, 456))){
     include(TEMPLATEPATH . '/cat-123.php');
     } else {
     include(TEMPLATEPATH . '/cat-default.php');
     }

    Change this:
    get_post_meta($post->ID, “slider-image”, $single = true)
    To this:
    get_post_meta(get_the_id(), “slider-image”, true)

    Change this:
    <img align="center" src="http://www.koreanwikiproject.com/navigation_map.jpg">
    To this:
    <img id="map" src="http://www.koreanwikiproject.com/navigation_map.jpg" />

    And add below rule in style.css:

    #map{
    margin:0 auto;
    width:958px;
    }

    when you use widgets there are certain classes and ids that are automatically generated

    you can spefify certain ids and classes in functions.php (again):

    if ( function_exists('register_sidebar') )
      register_sidebars(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
      ));

    space or borders between widgets, for example:

    #sidebar .widget{
    padding-bottom:30px;
    border:1px dotted #333;
    margin:bottom:30px;
    }

    Now the img tag is:
    <img class="head" src="http://www.sillie.nl/wp-content/themes/FancyTheme/thumb.php?src=<img class="thumb" src="http://www.sillie.nl/wp-content/uploads/2010/02/4-baggerwerkzaamhedenin-havens.jpg" alt="" />&h=278&w=592&zc=1&q=80" alt="Baggeren voor zand- en grindinstallaties" />
    Change to:
    <img class="head" src="http://www.sillie.nl/wp-content/themes/FancyTheme/thumb.php?src=http://www.sillie.nl/wp-content/uploads/2010/02/4-baggerwerkzaamhedenin-havens.jpg&h=278&w=592&zc=1&q=80" alt="Baggeren voor zand- en grindinstallaties" />

    For example, a sidebar with categories widget.
    in sidebar.php:

    <div id="sidebar" role="complementary">
      <ul>
        <?php
        if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) :
        ?>
    
        :
      </ul>
    </div>

    Maybe in functions.php:

    if ( function_exists('register_sidebar') )
      register_sidebars(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
      ));

    Then, generated HTML is like this:

    <div id="sidebar" role="complementary">
      <ul>
        <li id="categories-1" class="widget widget_categories"> class="widgettitle">
          <h2 class="widgettitle">Categories</h2>
          <ul>
            <li class="cat-item cat-item-1">
              <a href="http://example.com/category/category1" title="category1">Category1</a>
            </li>
            <li class="cat-item cat-item-2">
              <a href="http://example.com/category/category2" title="category2">Category2</a>
            </li>
          </ul>
        </li>
      </ul>
    </div>

    So if you want to add the bullet to the categories items,
    add below rules in style.css:
    #sidebar .widget_categories ul{list-style-type:disc;}

    In the real site, there is only div.item_image.

    Change div.item_image in the real site to div.item_image_left or div.item_image_right.

    Pls show the real site URL if possible.

Viewing 15 replies - 1 through 15 (of 162 total)