jeFFF
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Migrate Lite - Migration Made Easy] WordPress 3.8Sorry, I sorted the things out and it’s working fine.
Forum: Developing with WordPress
In reply to: Customized wp_nav_menu()Hello,
Can you just explain why is it so bad to override wp_nav_menu HTML output ?
The core WordPress coding team offers you that opportunity, I don’t see the pont of avoiding it, HTML markups do not hurt 😉For example, how can you add a custom “sub-menu” CSS class to a second level menu ?
<ul class="menu"> <li> <ul class="sub-menu"> <li></li> </ul> </li> </ul>How can you add a custom CSS class to an LI item to tell it that it has a child menu :
<li class="has-child"> <ul> <li></li> </ul> </li>(well, for this one, you can do it with a hook).
My point is, if you know what you are doing, you can do anything with core libraries overrides ( and I don’t say hack 😉 )
Cheers
jeFFFForum: Your WordPress
In reply to: Is it really WordPress?Hello Sarkut,
Take a look at this for font smoothing under Chrome :
http://maxvoltar.com/archive/-webkit-font-smoothingThis is CSS 3, it’s a great features. I put this on all my new sites.
Cheers
jeFFFForum: Fixing WordPress
In reply to: Fatal error on 3.1.2 (images)Glad to see it worked, but try another thing, my english is not so good and I think I wasn’t very clear.
What I wanted to say is that this instruction is in my functions.php file but I had this bug if I wrapped it like this :function myInit() { add_theme_support('post-thumbnails'); } add_action('init', 'myInit');In this particular case, as “add_theme_support” was wrapped in a function, I had the bug.
Putting the line outside the myInit function solved the problem.Cheers
jeFFFForum: Fixing WordPress
In reply to: Fatal error on 3.1.2 (images)Hello,
I had the same problem and I thought it was a plugin but for some reason I wrapped this line :
add_theme_support( 'post-thumbnails' );
in a function which caused the crash. If it’s the case, just put this line outside a function it should solve the problem.Hope this is helpful,
cheers,
jeFFFForum: Everything else WordPress
In reply to: Blacklist or something ???OK, very sorry about that.
I’m quite active on the “Hacks” part of the forum though 😉Forum: Everything else WordPress
In reply to: Blacklist or something ???Thanks a lot for that.
I posted yesterday and a few weeks ago 2 links for articles I Wrote about WP and they disappear as well.Did the content was against the forum rules ?
(It didn’t seem taht way when I read them).Cheers
jeFFFForum: Hacks
In reply to: Forcing the sidebar to refresh on each 'static' page link clickSame for me …. I don’t understand why !
I only see my replies when I’m connected !Forum: Hacks
In reply to: Forcing the sidebar to refresh on each 'static' page link clickIt works perfectly on my browser actually, each page display a new picture.
It may be just a cache issue, try to add these lines :
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");just before this one :
header('Location: '.$folder.$files[$rand]);It will override the cache.
Hope this will help
Forum: Hacks
In reply to: Forcing the sidebar to refresh on each 'static' page link clickJust how did you put the current pictures ?
Multiple sidebars definition ?Forum: Hacks
In reply to: Forcing the sidebar to refresh on each 'static' page link clickHello,
Quick question, did you use the widgets for your website ?
You can achieve what you want by creating a specific widget wich will get a random picture quite easily.
Let me know if it’s what you want.Cheers,
jeFFFForum: Hacks
In reply to: Sticky Posts and Regular PostsHello,
This behavior is normal as sticky posts are not considered as regular posts.
There is 2 ways to do what you want, create a new category entitled frontpage and display only this one on the front page using the query_posts function.
Or modify the loop on the front page (index.php), get all stickies using :
get_option('sticky_posts');
and pass the data in a query_posts function :
query_posts(array('post__in'=>get_option('sticky_posts')));Hope this help 😉
cheers
jeFFFForum: Hacks
In reply to: how to add more content to a postGlad I could help 😉
Just a quick advice, if you have some trouble with line breaks when displaying the content of the $multiparts_content_array just add the wautop function.
Example :
echo wautop($multiparts_content_array[1]);Cheers
jeFFFForum: Hacks
In reply to: how to add more content to a postHello,
I see to ways to do it, if you want to keep all the data in one post you can use multiple “more” tags in the content and split it within the loop with :
$multiparts_content_array = explode("<!--more-->", $post->post_content);The result is an array an then you can put the items in differents DIV tags.
The other way is to use Pages. You create a page template for the “trips”, create day1, day2… using posts; then in your template you gather the posts and display it.
Hope this is useful to you.
cheers,
jeFFFForum: Hacks
In reply to: wp-nav-menu inside bounding boxHello,
Ok I don’t know if using another Javascript library is the best option as jQuery is by default implemented in WP but that’s another debate 😉
You’ll find on my blog a way to extends the menu walker here :
Fixing the menu part 1In my tutorial I take care only of the “li” structure, in your case, you have to implement 2 more functions which construct the “ul”.
You can do that with adding this function :
function start_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div class=\"'box2\"><div class=\"'container2 \"><ul class=\"sub-menu\">\n"; }and that one :
function end_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div></div>\n"; }This is just what you want.
Hope this is helpful,
cheers
jeFFF