PureRushh
Forum Replies Created
-
Forum: Plugins
In reply to: Multiple media upload custom postHi, Tanks for your replay!
Actually I managed to solve my problem. It was a small problem, I just had to edit ‘attachment.url’ to ‘selection.models[i].attributes.sizes.thumbnail.url’ because when I selected more images all the data was saved in a JSON array. 😄 so here is my code
imageUploader.on( 'close', function() { var selection = imageUploader.state().get('selection'); var ids = selection.map( function (attachment) { return attachment.id; console.log(ids); }); jQuery("#test-img").empty(); jQuery.each(ids,function(i) { if (i > 0) jQuery('#test-img').prepend( function(attachment) { var output = ''; output += '<div class="image" id=",'+selection.models[i].attributes.id+'">'; output += '<img src="'+selection.models[i].attributes.sizes.thumbnail.url+'" alt="'+selection.models[i].attributes.id+'," />'; output += '<a href="#" style="margin-left: 10px;" class="delete class button-secondary">Delete Image</a></div>'; return output; }); }); hiddenSelected.setAttribute( 'value', ids.join() ); });Forum: Fixing WordPress
In reply to: Category problem!I think I didn’t explain it well enough,,,,
If you click on “overnatting” (booking). You both categories listed. Feriehus and Rorbu.
But on the front page they are displayed separately, and if you click on the category feriehus, the list of that category should show. Same with the other category “rorbu”.
Forum: Fixing WordPress
In reply to: PageNavi don't work in Search or archiveHmm, no it wont paginate. On archive i see all posts in the archive and not just 1 posts. What is wroong?
Forum: Themes and Templates
In reply to: How to add own peramters to your css sidebar?hi, but how can I style the content box after the widget title?
Forum: Themes and Templates
In reply to: How to add own peramters to your css sidebar?if ( function_exists('register_sidebar') ) register_sidebar(); register_sidebar(array( 'name' => 'Sidebar', 'before_widget' => '<li id="%1$s" class="%2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="sidebar">', 'after_widget' => '</h2>' ));This is how I want my sidebar to be http://cl.ly/3Z0r3q1J3D153E0R3D0Z/Skjermbilde%202012-01-29%20kl.%2000.19.09.png
and this is how it is http://cl.ly/2S0h1m0S0W0p003H3Q2g/Skjermbilde%202012-01-29%20kl.%2000.20.17.png
How the sidebar code should be:
<div id="sidebar"> <h2 class="sidebar">Søk</h2> <div class="sidebar_item"><form action="http://test.sjohaugbygg.no/" method="get" class="search_field"> <input type="text" class="search" value="Søk her..." name="s" /> <input type="submit" value="Søk" name="search" class="search" /> </form></div> <h2 class="sidebar">Siste innlegg</h2> <div class="sidebar_item"><div class="item_sidebar"></div></div> <h2 class="sidebar">Kommende kamper</h2> <div class="sidebar_item"><div class="item_sidebar"></div></div> <h2 class="sidebar">Siste resultater</h2> <div class="sidebar_item"><div class="item_sidebar"></div></div> </div>Forum: Themes and Templates
In reply to: How to add own peramters to your css sidebar?But how can I close the “after-title” ?
Forum: Themes and Templates
In reply to: How to add own peramters to your css sidebar?Hi,
Yeah, like giving the sidebar titles a own css style and the content another style, do you understand what I mean?
Forum: Themes and Templates
In reply to: the_content(); text floating evrywhere!Hey,
I’ve found the error,
My #conted had a attribute that said overflow auto:)sorry dude, but the attributes din’t help, everything is still wrong :/
But thanks for helping me Mark!
noob question, but what is worng here:
<a href="?p="><img src="' . get_template_directory_uri() . '/images/btn-view-all.png" /></a>[Please post code snippets between backticks or use the code button.]
thanks, can i ask one more question?
In my theme I can add menus that well be on the top, but they are getting sorted by alfabeth, so home is getting like number two in the menu, how can i change that?