Chrisdc1
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Dropdown Menu HelpYou seem to be starting off on the right lines. Rather than being daunted by the task as a whole it helps to break down what you need to do. As I see it there are 3 main things you need to do in your css to get a basic functioning dropdown menu.
- Hide the submenus by default
- Use the :hover pseudo selector to reveal the submenus when you hover on it’s parent item. Remember that :hover doesn’t have to go at the end of a css selector, a selector like
.parent:hover .child
lets you apply styles to an element when you’re hovering on it’s parent - Unfloat the items in your submenus so they appear vertically rather than horizontally
Beyond that I expect you will have to do some more positioning work, especially with 3rd level menus, and maybe a bit more styling as well, but if you can manage these things I think you will be in a much better position. Good luck!
Forum: Themes and Templates
In reply to: Dropdown Menu HelpThat should be possible, but you’ll need to post some more information first. Could you post a link to your site (if it’s already running) and say which theme you’re using please.
Forum: Themes and Templates
In reply to: [Ridizain] stop title from overlapping the pictureI’m glad that helped. There shouldn’t be any problems if the theme gets updated. Making a child theme would mean you can remove the overlap without having to keep jetpack installed, but other than that the two methods should produce identical end results.
Forum: Themes and Templates
In reply to: [Ridizain] stop title from overlapping the pictureUnfortunately this isn’t possible without at least a little bit of code, but it doesn’t have to be too painful. Give this a try:
- Install and activate the Jetpack plugin on your site
- This will add a new Jetpack menu to your dashboard. Go to Jetpack > Settings then look for the ‘Custom CSS’ option and click on it’s activate link
- This will now add a new ‘Edit CSS’ option under your appearance menu. Go to this page then paste this code into the editor window (you can leave out my comment at the top). Click the save stylesheet button.
…and that’s it, your titles should now sit below the pictures instead of overlapping. I will just add that if you’re feeling more ambitious it would be fairly simple to make this into a simple child theme of your own, but I believe you will find the way I’ve listed above simplest.
Forum: Themes and Templates
In reply to: [Elucidate] How to change H1 tagsIn HTML5 (which Elucidate uses) it’s considered correct practice to have an h1 tag for each sectioning element in the html (article, section, nav and aside tags) so I wouldn’t expect to see any SEO penalty from having multiple h1 tags. Having said that if you did want to change this you should create a child theme as esmi suggests otherwise your changes would be removed when a new version comes out (I haven’t had much time lately, but a new version is coming).
As for where the sidebar heading tags are defined: Take a look at the function
elucidate_widgets_init()
in functions.php as well as the default widgets in sidebar.phpForum: Themes and Templates
In reply to: [Elucidate] Image onto homepage below the menuHello, I’m afraid the theme doesn’t support that just yet. Having said that I have been planning to add a basic front page template with support for a full width featured image. Is that the kind of thing you were thinking of, or something slightly different?
Chris
Forum: Hacks
In reply to: Changing Excerpt length by pluginSorry for the delay responding as I was away for a bit. I just wanted to come back to say thanks as your solution seems to work. For the benefit of anyone who finds this thread in the future I’ll also add that wp_trim_words looks like a good solution as well.
Forum: Hacks
In reply to: Changing Excerpt length by pluginI tried that thanks, unfortunately that seems to set the excerpt length of anything that isn’t a gallery post to 0.
Forum: Hacks
In reply to: Changing Excerpt length by pluginSorry, I worry I may be misunderstanding something, but I don’t think that does quite what I need. The code I posted above works fine for me right now but I’m concerned that the return 55; line might interfere with other plugins or theme functions that use custom_excerpt_length. Is there a good way to adjust the excerpt length on my gallery custom post type without having to specify any other values?
Forum: Hacks
In reply to: Need to remove a text widget at a specific time each dayI would like to add a big ‘I am new to this’ disclaimer here, but might it be possible to edit your widget or widget area along these lines?
$blogtime = current_time('mysql'); list( $today_year, $today_month, $today_day, $hour, $minute, $second ) = preg_split( '([^0-9])', $blogtime ); if ( $hour > 09 && $hour < 19 ) { // Load chat link } else { // Don't load anything }
Changing $hour > 09 to reflect whatever time you want to turn the widget back on.