Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jl2424

    (@jl2424)

    Can no one help answering this question? I really do not know how to make it..

    Thread Starter jl2424

    (@jl2424)

    Thanks for the advise, but the time still is displayed in German. Even after changing all meta-headers to “en-US” and my Firefox to “en-US” does not affect it at all.
    Could it be that it depends on the WordPress version? The WordPress was automatically installed by our hoster and (as it is a German hoster) they installed the German WordPress.

    Thread Starter jl2424

    (@jl2424)

    But we want our authors to be able to add some basic formats like bold, italic, hyperlinks, etc. So we cannot disable it completely.

    Thread Starter jl2424

    (@jl2424)

    This, of course, can break your design if you highlight the link to the current page differently than the other page links using the current_page_item and page_item classes.

    Workaround:
    In your CSS, instead of using the page_item class, style all page items by accessing their element directly instead of using the class name. Afterwards, overwrite the styles for the current page by accessing it through the current_page_item class directly (which is added by WordPress correctly). Take care of the following: The overwriting will only apply, if you access the current page styles through the element path and the current_page_item class directly. This is due to the cascading of CSS: As you can overwrite styles (called “cascading”) CSS has to know which style definition applies in case that more than one definition was given. CSS rates every definition to know which definition is more important and should apply. Accessing an element directly through the element path is rated by CSS higher then directly by its class name – even if this definition is added after a first defintion.

    Working Example:

    /* -- PHP -- */
    <?php wp_page_menu(array(
       'menu_class' => 'pageMenu', // the page menu will be placed inside a <div> with this class
       'show_home' => 'Blog'
    ));
    ?>
    
    /* -- CSS -- */
    /* The hyperlink to a page */
    .pageMenu ul li a {
       color: white;
    }
    
    /* Overwriting the style for current page link */
    .pageMenu ul li.current_page_item a {
       color: #F7931E;
    }
    
    /* This won't work: */
    .current_page_item a {
       color: #F7931E;
    }

    Thread Starter jl2424

    (@jl2424)

    Thanks, but I think we cannot use it that way. Our page navigation consists of images with a non-standard font used. So I guess we have to hard-code the pages like that:

    <a href="page01">
         <img src="page01button.gif" />
    </a>
    <a href="page02">
         <img src="page02button.gif" />
    </a>

    etc.

    But how can we get the correct link to a page? Is there something like <?php get_page_link($pageId); ?>

    Thread Starter jl2424

    (@jl2424)

    Our corporate font is a non-standard (!) font, so we cannot use it with CSS. Most computers will not have it installed, so they will not see our corporate font but a standard windows/mac font instead.

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