Robin
Forum Replies Created
-
the other way i use to add images is (using ftp) create a content-image folder in your themes folder upload all your images
and while in your post add
<img src=”/wp-content/themes/theme-folder/content-image”>
Not the most elegant way but it works
you can define width and height
and if you want someone to click images and open in a lightbox style – u can use lightbox2 or something similaryou could do that with a css (would be great if you could add your link for exact css class) here is a sample
say your content box has class main
so the css would look like
.main img { margin-left:20px; }This would make the images uploading in your content margin-left
Forum: Fixing WordPress
In reply to: Moving site, lost thumbnails for media library and fronttry using this tool for your database migration (search and replace) on your main database
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/it takes care of serialization as well and you wont need to manually replace any code on database
upload the php file (from the link) to the xx/dev and run the file
replace ur old url xx/dev to /
Forum: Fixing WordPress
In reply to: Exclude a category from the loopWorks fine for me tested on my own blog
Forum: Fixing WordPress
In reply to: Exclude a category from the loopjust saw the code there was extra character in the function
add_action('pre_get_posts', 'cat_to_exclude' ); function cat_to_exclude( $wp_query ) { $excluding = array(4); set_query_var('category__not_in', $excluding); }Create a child folder for your theme
create a new functions file add the codeForum: Fixing WordPress
In reply to: Exclude a category from the loopfor further read you can follow this codex
http://codex.wordpress.org/Custom_Queries#Category_ExclusionForum: Fixing WordPress
In reply to: Exclude a category from the loopI havnt tested it but you can try this as well
in your loop
showposts=4&paged=$page&cid=-4add a minus(-) sign
Forum: Fixing WordPress
In reply to: Exclude a category from the loopYou can add this in your functions.php file
add_action('pre_get_posts', 'cat_to_exclude' ); function 'cat_to_exclude( $wp_query ) { $excluding = array(4); set_query_var('category__not_in', $excluding); }Forum: Fixing WordPress
In reply to: Moving site, lost thumbnails for media library and frontUsing software like filezilla – ftp your installation folder and change the permission for uploads folder –
Forum: Fixing WordPress
In reply to: Remove space between posts and Nav Bar#main.fullwidth, .layout-full #main, .col-full { margin-top:-15px !important; }you can adjust the margin as per your requirement
Forum: Themes and Templates
In reply to: Getting style.css error during installYour site file is/would be missing the theme call
/* Theme Name: Your Theme Name Theme URI: http://www.theme-url.com/ Description: Theme desc Version: 6.1.0 Author: Author Name Author URI: http://author website.com/ License: MIT License License URI: http://opensource.org/licenses/MIT */Forum: Fixing WordPress
In reply to: Minify breaks my blog's layout and I have no clue how to fix itThis article has lot of step by step process
(would recommend backing up your website and database)
http://wordpress.shadowlantern.com/reducing-cpu/and again make a copy of localhost and test out or setup a dev.yourdomain.com and add copy to it
Forum: Fixing WordPress
In reply to: Minify breaks my blog's layout and I have no clue how to fix itForum: Fixing WordPress
In reply to: Minify breaks my blog's layout and I have no clue how to fix it1: Try removing timthumb and add_image_size function
2: php.ini memory_limit (usually it is 64M) try increasing to 100
2: Dump your site on localhost and remove plugins one by one and see the speed differenceForum: Fixing WordPress
In reply to: Minify breaks my blog's layout and I have no clue how to fix itJust a random thought what is your memory_limit in php.ini file ?