digitalmonkey
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How edit the location of sidebar widgets?I’m not sure what you mean alchymyth, do you mean I have to remove the last comma? Or something else.
Forum: Themes and Templates
In reply to: How edit the location of sidebar widgets?bump :0
Forum: Themes and Templates
In reply to: How edit the location of sidebar widgets?okay I screwed up the file after put the div in.
<?php if ( function_exists('register_sidebar') ) { register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>''<div class="hr"></div>', 'before_title' => '<strong><h3 class="widgettitle">', 'after_title' => '</h3></strong>', )); } ?>I keep getting this error where ever I put it: Parse error:
syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /functions.php on line 5
and unable to access the dashboard after. I know I can easily fix the error by rewriting it with the original and ftping it up but I don’t know where to put the div for inclusion.
Forum: Themes and Templates
In reply to: How edit the location of sidebar widgets?Is there a way just to edit the order of the widgets like a html where the ones you add are actually in the code. That seems the easiest way of me to edit them individually.
Forum: Themes and Templates
In reply to: How edit the location of sidebar widgets?thanks Esmi! however most of that in the link went right over my head. I tried to add the div tag in the after_widget part but it just went crazy and returning a syntax error. I hope it’s not too much to ask for a step by step guide.
also I want to do some editting to title font size but so that it has different font styles. here’s what I mean.
I want the font to be formatted like this:
<h3><‘strong’>Search</’strong’> all posts</h3> splitting up the first and second words with the first being in bold. this is the code but I don’t know how to automate it.'before_title' => '<h2 class=\"widgettitle\">', 'after_title' => '</h2>' ); ?>'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">', 'after_widget' => '</li>',also after ”should I add the div tag?
thx
Forum: Themes and Templates
In reply to: duplicating div tag for main postsbtw does anyone know the code to turn the month from a fully written month ie: November to Nov?
Edit: found it. It’s ‘M’.
Forum: Themes and Templates
In reply to: duplicating div tag for main postsOkay I fixed it. What I did was to move the ‘content’ div above ?php if (have_posts()) : ?> and deleted the extra </div>
Forum: Themes and Templates
In reply to: duplicating div tag for main postsI think I know what the problem is only I don’t know how to fix it.
The content div should enclose all the posts, only on the htlm of the site there’s many ‘content’ divs.
here’s the code from the html:
<div id="content"> <div id="blog-44" class="blog"> <p class="date">November<br /> <span>20th</span></p> <div class="blog_small"> <h2><a href="http://www.bhalah.com/wordpress/?p=44" rel="bookmark" title="Permanent Link to asa">asa</h2> <p>Tags: <a href="http://www.blahaha.com/wordpress/?tag=test" rel="tag">test</a><br /></p> <div class="entry"><p>gfggggggggggggggggggggggggggxxxxxgggggggggggc vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvbx</p> </div> <div class="hr"></div> <p><a class="post-edit-link" href="http://www.blahah.com/wordpress/wp-admin/post.php?action=edit&post=44" title="Edit post">Edit</a> | <a href="http://www.blahah.com/wordpress/?p=44#respond" title="Comment on asa">No Comments ยป</a></p><br /> <div class="hr"></div> </div> </div> <title>site orignal</title> <div id="content"> <div id="blog-36" class="blog"> <p class="date">November<br /> <span>18th</span></p> <div class="blog_small"> <h2><a href="http://www.bhalal.com/wordpress/?p=36" rel="bookmark" title="Permanent Link to this new">this new</h2> <p>Tags: <a href="http://www.bhalala.com/wordpress/?tag=test" rel="tag">test</a><br /></p> <div class="entry"><p>test on alignmen.</p> <p><img class=" alignnone" src="http://www.din-2.jpg" alt="nbnvgnv" width="375" height="300" /></p> <p><img src="file:///C:Temp/moz-screenshot-1.png" alt="" /><img src="file:///C:Temp/moz-screenshot-2.png" alt="" /></p> <p><img src="file:///C:/Temp/moz-screenshot.png" alt="" /></p> </div> <div class="hr"></div> <p><a class="post-edit-link" href="http://www.bhalal.com/wordpress/wp-admin/post.php?action=edit&post=36" title="Edit post">Edit</a> | <a href="http://www.bhahal.com/wordpress/?p=36#respond" title="Comment on this new">No Comments ยป</a></p><br /> <div class="hr"></div> </div>Forum: Themes and Templates
In reply to: duplicating div tag for main poststhanks alchymyth, I tried it and it didn’t work. ๐ also I am having one post on a page.
Forum: Themes and Templates
In reply to: Sidebar div position problemYeah! fixed it, turned out I didn’t end the div tag. but now I’ve got aload of random </div>’s that I don’t know are for.. :-S
Forum: Themes and Templates
In reply to: Sidebar div position problemI have an open div in the header (column-Left) and closes in the main index php which could be the the cause but I’m not sure.
Forum: Themes and Templates
In reply to: Sidebar div position problemAlso here’s the stylesheet for Column right
div#container div#column-right{ float:right; width:230px; display:inline; margin:300px -2px 0 0;Forum: Themes and Templates
In reply to: Sidebar div position problem<!-- Get Side bar starts --> <em> <div id="column-right"></em> <div id="colours"> <p>Pick a colour:</p> <a id="red" href="" rel="1" onClick="set_style(this);return false;">red</a> <a id="yellow" href="" rel="2" onClick="set_style(this);return false;">yellow</a> <a id="green" href="" rel="3" onClick="set_style(this);return false;">green</a> <a id="blue" href="" rel="4" onClick="set_style(this);return false;"class="on">blue</a> <a id="pink" href="" rel="5" onClick="set_style(this);return false;">pink</a> <br style="clear:both;" /> </div> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <h3><strong>Search</strong> all posts</h3> <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> <div> <label class="hidden" for="s"> <?php _e('Search for:'); ?> </label> <input type="text" value="<?php the_search_query(); ?>" name="s2" id="s2" /> <input type="submit" class="button" value=">" /> </div> </form> <div class="hr"></div> <h3><strong>Featured</strong> posts</h3> <em></div></em> <!-- Get sidebar ends -->here’s the sidebar code with the “column-right” div inside it but the same thing happens.
Forum: Themes and Templates
In reply to: How to change the div that make post to another div?I think I should set this thread to resolve since my main question was answered. thanks everyone for the help!
Forum: Themes and Templates
In reply to: How to change the div that make post to another div?hmmm. that way of writing it works fine on the html page. I think it’s correct because it’s part of the CSS cascade.
here’s the way it’s written in my htlm:
<div id=”content”>
<div id=”blog-508″ class=”blog”>
<p class=”date”>June
<span>30th</span></p>
<div class=”blog_small”><h2>Title</h2>
<p class=”tags”>Tags:</p>along with the part of the CSS style sheet:
div#container div#content{
clear:both;
padding:15px 15px 0;
}div#container div.page,
div#container div.blog{
margin:10px 0 0 0;
}
div#container div.blog p.date{
float:left;
width:65px;
height:52px;
font-size:14px;
text-align:center;
padding:10px 0 0 0;
}
div#container div.blog p.date span{
font-size:20px;
line-height:28px;
font-weight:bold;
}
div#container div.blog div.blog_small,
div#container div.blog div.blog_large{
margin:0 0 0 80px;
}
div#container div.page div h2,
div#container div.blog div h2{
font-size:26px;
margin:0 0 15px 0;
font-weight:normal;
font-family:”Trebuchet MS”,sans-serif;