jl2424
Forum Replies Created
-
Forum: Plugins
In reply to: How to query all contributor users from DB?Can no one help answering this question? I really do not know how to make it..
Forum: Themes and Templates
In reply to: Force date to be in format “June 6, 2009” and English language?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.Forum: Themes and Templates
In reply to: How to disable/restrict WYSIWYG Editor?But we want our authors to be able to add some basic formats like bold, italic, hyperlinks, etc. So we cannot disable it completely.
Forum: Themes and Templates
In reply to: wp_page_menu does not add page_item class to Home linkThis, 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_itemandpage_itemclasses.Workaround:
In your CSS, instead of using thepage_itemclass, 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 thecurrent_page_itemclass 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 thecurrent_page_itemclass 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; }Forum: Themes and Templates
In reply to: Pages as tabs with the active tab colored differently?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); ?>Forum: Themes and Templates
In reply to: Category links in non-standard font?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.