Ivan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Syntax ErrorOnce you have control in FTP, try navigating to the file that you mentioned (theme-options.php) and download it. Then copy the contents into a pastie as mentioned above and you’ll be set!
Forum: Themes and Templates
In reply to: Images opening on a new pageYou’re very welcome! If you can marked this thread as resolved I’m sure that will help people who come by looking for similar information in the future!
Glad to help!
Forum: Themes and Templates
In reply to: Syntax ErrorKevin, could you please post the contents of ‘theme-options.php’ in a pastie and then post that here on the forum? That will give us a starting point on finding the issue!
Forum: Themes and Templates
In reply to: Images opening on a new pageIn answer to your initial question, the reason it opens to a new page containing just the image is that the picture itself is wrapped in a link, sending people to the attachment (image, PDF, video…whatever really). The way to stop pictures from opening in a new page would be to go through and edit your pages and posts and select the images and just select ‘Remove link’ from the toolbar above the edit post area.
To stop this from happening in the future, when you’re uploading or attaching a new image in a post or page, the pop-up window will have an area that asks where you want to ‘link’ the image to. Just select ‘None’ and it should save that choice as the default.
As WPYogi stated, there is no foolproof way to stop people from taking your images and disabling right click does less to stop people and more impairs accessibility of your site.
Forum: Fixing WordPress
In reply to: Adding More Than 2 SubmenusNo problem! If you can mark this post as resolved that will hopefully help anyone else who comes looking for help on the same topic!
Forum: Fixing WordPress
In reply to: Adding More Than 2 SubmenusNick,
Thanks for posting that! What we’re looking for is around line 248:
<!-- START NAV --> <div id="nav" class="group"> <?php $nav_args = array( 'theme_location' => 'nav', 'container' => 'none', 'menu_class' => 'level-1', 'depth' => apply_filters( 'yiw_main_menu_depth', 3), //'fallback_fb' => false, //'walker' => new description_walker() ); wp_nav_menu( $nav_args ); ?> </div> <!-- END NAV -->
What we need to do is change the depth from:
'depth' => apply_filters( 'yiw_main_menu_depth', 3),
to:
'depth' => apply_filters( 'yiw_main_menu_depth', 4),
However as WPYogi mentioned, this is a theme that may be updated in the future and we wouldn’t want the updates to overwrite this change. Therefore you may want to place all of this information in your functions.php which according to the comments in the functions.php, it won’t be overwritten if the theme updates. If you have questions on how to do that I recommend first looking at the link WPYogi posted and also check out how functions.php operates. If you can’t figure it out from there, just ask!
Edit: I forgot to mention, the code you’re looking for above is in your header.php. That’s kind of important =P
Forum: Fixing WordPress
In reply to: Adding More Than 2 SubmenusNick,
The code currently isn’t being output on the site, which makes me think that it may be restricted in your theme somehow, either through functions.php or through your header.php. If you could post the contents of both of those to pastie that’ll give us a good idea of what’s going on in your theme.
Assuming, that is, that the menu item’s you want underneath Accessories have been dragged beneath and to the right of them in the menu manager in the Admin panel of your WordPress site =)
Forum: Fixing WordPress
In reply to: Adding More Than 2 SubmenusNick,
As I see it, Rings -> Stackable Rings -> Products currently show 3 levels deep. Is this not acting the way you want? Or do you mean you would like it a step further?
Is there another menu item that you’re wanting to expand?
Forum: Fixing WordPress
In reply to: Adding More Than 2 SubmenusNick,
Sub-menu’s should be displaying on your site by default if you’re using a WordPress (twenty-ten, twenty-eleven etc) theme but they may be hidden in the code. If you point us towards your site that’ll allow us to see what code output we’re dealing with!
The link WPyogi gave you will help you with Child Themes, but won’t contain what you’re looking for inherently. The code Evan gave you will register a new menu, but what you’re looking for is just an expanded main menu with further levels, not an entirely new menu.
Forum: Fixing WordPress
In reply to: Adding More Than 2 SubmenusNick,
No problem. Could you point us to the site that you’re working on? That’ll give us a better idea of the theme you’re using as well as specifically what you’re asking. Are you asking for 3 or more individual menu’s? Or just 1 menu that has multiple levels deep?
Forum: Fixing WordPress
In reply to: How Do I Delete 'Home' Page?Tom,
WPyogi is correct, it is very important that you don’t modify any theme files from the stock themes (such as twenty-ten, twenty-eleven etc.) as those will be overwritten if the theme updates. That doesn’t matter at this point though, because we’re still trying to identify how that’s being generated. We could just remove it with jQuery and be done with it quickly, but I don’t believe that to be the best solution at this point.
Forum: Fixing WordPress
In reply to: How Do I Delete 'Home' Page?Tom, you used it just right…thanks! However unfortunately that didn’t show what we’re looking for. If you could post the contents of your functions.php that will likely hold what we’re looking for. Basically we’re trying to find where the menu is being registered and try to identify if a ‘Home’ link is being generated.
Forum: Fixing WordPress
In reply to: CSS menu helpStephen, you’re very welcome! You are correct, as well in that since you are editing a child theme, it will not be overwritten if you update a stock theme such as twenty-eleven.
As far as an explanation for the code, it was previously selecting all anchor (or ‘a’) elements contained within the list item with a class ‘current-menu-selector.’ So by placing the ‘>’ it selects only the anchor element immediately within the list item. So any anchor elements immediately within the list item will be selected but any anchor elements further down the nest (such as in another unordered list) will not be selected.
For example:
<ul> <li class="current-menu-item"> <a href="#">This will be selected since it's an immediate ancestor</a> <ul class="sub-menu"> <li> <a href="#">This will not be selected since it's not an immediate ancestor. It's an ancestor of an additional unordered list.</a> </li> </ul> </li> </ul>
So essentially by just placing a space, it selects ALL following anchor elements held in that element. By placing the ‘>’ it selects just the ones closest to the parent element.
Forum: Fixing WordPress
In reply to: CSS menu helpStephen,
Find the following around line 86 of your stylesheet:
/*leaves the parent main menu tab highlighted once a child is clicked*/ /*#nav ul li.current-menu-parent a,*/ #nav ul li.current-menu-ancestor a { background-color: #FFFFFF; }
And replace it with:
/*leaves the parent main menu tab highlighted once a child is clicked*/ /*#nav ul li.current-menu-parent a,*/ #nav ul li.current-menu-ancestor > a { background-color: #FFFFFF; }
Forum: Fixing WordPress
In reply to: How Do I Delete 'Home' Page?Well it should be under the Pages portion of the panel because that simply lists all the things that could be menu items, even if they aren’t currently. If it isn’t in the menu structure, could you please post the contents of your header.php here using pastie? That’ll give me a better idea of what’s going on.