cesbloggan
Forum Replies Created
-
Thank you photocrati. As it happened I actually waited until the new version came out yesterday and I don’t have any problems any more.
Something didn’t work together with JQuery Lightbox but since I changed to WP JQuery Lightbox it worls like a charm.Hi
I have just installed NextGen 2.0.7 on TwentyEleven latest WP version.
I can’t upload any pictures, get the same message when trying to add pictures/gallery;
RunTimeException shown
/customers/b/coverup.se/httpd.www/V02/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php is not a valid MVC templateForum: Fixing WordPress
In reply to: Why does WP (Twentyeleven) add p tag around images???I finally put the script in the header and it works!
Like this:<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script>$(document).ready(function() { $('p > img').parent().replaceWith(function() { return $('img', this); }); });</script>Thank you!
PS
the source-file still shows the <p> around the iamges but the css now works as if they arent’t there..Forum: Fixing WordPress
In reply to: Why does WP (Twentyeleven) add p tag around images???Should it go in the file that holds wp_footer(); ?
Forum: Fixing WordPress
In reply to: Why does WP (Twentyeleven) add p tag around images???I did, it doesn’t work. Displays as text on the page. Thanks for helping by the way 🙂
Forum: Fixing WordPress
In reply to: Why does WP (Twentyeleven) add p tag around images???the script type should go in the header and is not there at the moment. Can I add the script itself in the header? Or does it need to go in the footer?
Forum: Fixing WordPress
In reply to: Why does WP (Twentyeleven) add p tag around images???.. and shouldn’t it be:
$(document).ready(function() { $('<p > img').parent().replaceWith(function() { return $('img', this); }); });instead of:
$(document).ready(function() { $('p > img').parent().replaceWith(function() { return $('img', this); }); });I added < to the p in the beginning.
Forum: Fixing WordPress
In reply to: Why does WP (Twentyeleven) add p tag around images???Hi,
thank you!
But I don’t think I have jQuery defined since I haven’t used anything with jQuery so far (and won’t).
Can you help me with how to do it?Forum: Themes and Templates
In reply to: WP adding style with extra 10px.. Where?Thanks!
I read the post and copied the code into functions.php and it works like a charm!
Of course it was an image with a caption but I want to have the possibility of using captions and not having to add extra code to format regular text like a caption.
🙂OK, I think I solved it and hope I didn’t screw something up..
Changed this:if ( ! function_exists( 'twentyten_posted_on' ) ) : /** * Prints HTML with meta information for the current post—date/time and author. * * @since Twenty Ten 1.0 */ function twentyten_posted_on() { printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ), 'meta-prep meta-prep-author', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), get_the_author() ) ); } endif;to this:
if ( ! function_exists( 'twentyten_posted_on' ) ) : /** * Prints HTML with meta information for the current post—date/time and author. * * @since Twenty Ten 1.0 */ function twentyten_posted_on() { printf( __( '%2$s %3$s', 'twentyten' ), 'meta-prep meta-prep-author', sprintf( '<span class="entry-date">%3$s</span>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '<a class="url fn n" href="%1$s" title="%2$s">%3$s</a>', sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), get_the_author() ) ); } endif;and it works fine for me!
I guess I should be able to take away this line too:
get_permalink(),Maybe better also?
Thanks, through some other posts I found the place, I managed to take away the text i.e. “Posted on” and “by” but when I try to take away the Author link, I don’t do the right thing..
Found this:function twentyten_posted_on() { printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ), 'meta-prep meta-prep-author', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), get_the_author() ) ); } endif;and did this:
function twentyten_posted_on() { printf( __( '%2$s %3$s', 'twentyten' ), 'meta-prep meta-prep-author', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), get_the_author() ) ); } endif;which worked but when I tried to take away the last two sprintf it didn’t work.
I might have missed out on deleting a )-sign or something and will try again but if you know what to do, I’ll be more than happy for help!
🙂Forum: Fixing WordPress
In reply to: How to change "Home" in menu to another word.OK, I thought so, only it’s quite handy to just have the menu items appear by themselves..
🙂
Thanks!Forum: Fixing WordPress
In reply to: How to change "Home" in menu to another word.Hi, thanks for answering. 🙂 Since this is the #access menu (and no I haven’t hardcoded it ) that displays all pages created automatically, this menu doesn’t actually appear in Appearances > Menus.
The change can’t be done directlöy in the header I think. This is the code part where it lies though:
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>I think it must be referenced in “nav-menu-template.php” but I don’t know php well enough to change the code there. And I can’t (of course) really see where it calls the language-version..
I think it comes around line 191 in nav-menu-template.php…
The translation is residing elsewhere though.I have already changed the page’s name to Start but it doesn’t change the menu-name which is fine since I will redo that page entirely later on ( I won’t even have an entry-title there). I still want the menu to display Start!
Please get back if I am not clear enough.
Forum: Fixing WordPress
In reply to: Permalinks don't work for pages AND postsOK, thanks!
I did understand when you gave me the idiot-proof written advice 🙂Forum: Fixing WordPress
In reply to: Permalinks don't work for pages AND postsInteresting, but how would I go about changing my post and page structure then?
I added:
news/%postname%/
which works fine as well. I actually have the posts on a “News”-page and by adding “news” in front of %postname% it shows that instead of “posts” on the posts-pages but the pages remain the same.Is that a better way of doing it or is adding news instead of posts actually making it another text-field as you say?