Josh M.
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Change li class for WidgetsThanks for the reply,
however that will only affect the widget title – I want to edit the actual list items generated inside the body of the Widget.
Here is the layout html for the sidebar:
[Code moderated as per the Forum Rules. Please use the pastebin]
If you notice the layout title is inside a list item, which I have set and it displays properly – my problem is that the generated output of the widget creates:
[Code moderated as per the Forum Rules. Please use the pastebin]
So – my problem is with the body <li class> not the title
Please advise…
Forum: Themes and Templates
In reply to: Highlight Current Page in WordPress 3.0 MenusWorked perfectly – thanks
Forum: Themes and Templates
In reply to: Highlight Current Page in WordPress 3.0 MenusHello alchymyth, thanks for you help.
I am using ff web developer & fire bug – and also I have used the classes you mentioned above, but for some reason the current page still isn’t highlighting.
I’ve tried many variations, you can see it “not” working by clicking one of the links: https://wp-themes-and-plugins.com/products-page/ – if you want I will post wp-admin credentials for your testing.
You can see the classes added to my stylesheet,
Please advise…
Forum: Themes and Templates
In reply to: Disabling link to PageCheck this link out:
https://wp-themes-and-plugins.com/plot29/Forum: Themes and Templates
In reply to: Disabling link to PageNot a problem,
Forum: Themes and Templates
In reply to: Attribute specific menus to specific pages?The above will work for posts & pages
Forum: Themes and Templates
In reply to: Site Title ProblemWhy not simply replace:
<title><?php wp_title(''); if (function_exists('is_tag') and is_tag()) { ?><?php } if (is_archive()) { ?><?php } elseif (is_search()) { ?><?php echo $s; } if ( !(is_404()) and (is_search()) or (is_single()) or (is_page()) or (function_exists('is_tag') and is_tag()) or (is_archive()) ) { ?><?php _e(' | '); ?><?php } ?><?php bloginfo('name'); ?></title>
With:
<title><?php bloginfo('name'); ?></title>
This will make your site name consistently used as the title
Forum: Fixing WordPress
In reply to: More then two postsLook inside your home.php file ( maybe index.php ) depending on the developers of this theme.
There should be a function to query for posts and it will have a set number of posts to display ( in this case it should be set to 2 ) since the theme is only showing the two most recent posts.
Increase this number to 4 – however, please be aware that this may cause problems with styling. You may need to make adjustments to the css.
Forum: Fixing WordPress
In reply to: More then two postsIt depends on your theme. What theme are you using?
Forum: Themes and Templates
In reply to: Finding a theme to fit my design.You can easily convert any html document into WordPress theme by adding the wp functions to the areas that need to work with the cms.
Here is a list of all wp functions: https://codex.www.ads-software.com/Function_Reference
You can also view the source of existing themes and use them as references for coding the theme.
You may also want to take a look at this tutorial:
https://www.webdesignerwall.com/tutorials/building-custom-wordpress-theme/Post any questions
Forum: Themes and Templates
In reply to: Attribute specific menus to specific pages?I would probably create two menu systems but trigger them based on a custom key value
Example:
<? $lang = get_post_meta($post->ID, "Menu Language", true); ?> <? if($lang == 'fr'){ ?> <?php wp_nav_menu( array('menu' => 'menu_fr' )); ?> <? }elseif($lang == 'nl'){ ?> <?php wp_nav_menu( array('menu' => 'menu_nl' )); ?> <? }else{ ?> <?php wp_nav_menu( array('menu' => 'menu_eng' )); ?> <? } ?>
This way you can trigger which menu to show using custom key value fr or nl.
Ask any questions
Forum: Themes and Templates
In reply to: How to hide certain pages in NavbarLook inside header.php, you will see:
<div class="menu"> <ul> <li id="nav-home"<?php if ( bp_is_front_page() ) : ?> class="page_item current-menu-item"<?php endif; ?>> <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a> </li>
Add the conditional I provided above after the
- as shown here:
<div class="menu"> <ul> <? if ( is_user_logged_in() ) { <li><a href="#">Link Title</a></li> } ?> <li id="nav-home"<?php if ( bp_is_front_page() ) : ?> class="page_item current-menu-item"<?php endif; ?>> <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a> </li>
Forum: Themes and Templates
In reply to: How to hide certain pages in NavbarSomewhere in your theme exists a function to generate pages listings, can you reply with the name of your theme and from where you downloaded it? This way I can download it and take a look at the theme files to locate where the menu is being generated.
Thanks,
Forum: Fixing WordPress
In reply to: Columns showing at bottom of blogThere seems to be quite a few problems with this theme layout structure. For starters your <div id=”content”> has the float left:
#content { float:left; font-size:1.1em; padding:0 0 0 1em; width:590px; }
necessary so the content appears on the left, however your <div id=”sidebar”> is contained inside the <div id=”content”> tag -It should be outside of it and have a float:right
Currently these are the only styling currently present for <div id=”sidebar”>
#sidebar ul { list-style-type:none; clear:both; margin:0 0 1em; padding:0; } #sidebar ul li,#sidebar ul li a { padding-top:.2em; padding-bottom:.2em; padding-right:.2em; } #sidebar ul li:hover,#sidebar ul li a:hover { background:#F0F0E0; } #sidebar ul.children { margin:0 0 0 10px; } #sidebar ul ul { margin:0 0 0 10px; } #sidebar h2 { color:#6F6F6F; font-size:1.5em; margin-top:1em; } #sidebar h4 { color:#151515; font-size:1.5em; }
Forum: Themes and Templates
In reply to: template disappears when not logged in to adminAfter viewing your source, I see that the stylesheet is being referenced here: https://witnessing2u.com/wordpress/wp-content/themes/witnessing2u_rev2/style.css
but that file do not exist on the server