Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter Quincy

    (@lodjixmedia)

    Would my sidebar work if I built the query with SQL instead of “query_posts” or “WP_Query()”?

    Is ANYONE going to help me out here? I refuse to believe this is the one issue that NO ONE on this site can assist with…

    PLEASE?!?!?!? HELP?????????

    Thread Starter Quincy

    (@lodjixmedia)

    Ok, I’ll reword my question…

    Can anyone know what would cause my query (in the code posted above) to not work? This works on EVERY other page except when I use this plugin to perform a search. It really doesn’t make sense to me why my query is broken…

    Any suggestions? I just need some direction….

    Thanks everyone =)

    Thread Starter Quincy

    (@lodjixmedia)

    Please? Anyone…?

    Thread Starter Quincy

    (@lodjixmedia)

    Really? I’ve posted twice here and never have I gotten a reply or any help..

    This is awesome… thanks… really appreciate the “support”…

    Hey,

    I tend to remove this as well sometimes when I develop custom sites.

    One way to do it is to edit: https://yorsite.com/wp-admin/css/colors-fresh.css

    Find #update-nag and update it to the following:

    #update-nag {
    background-color:#FFFEEB;
    border-color:#CCCCCC;
    color:#555555;
    display:none;
    }

    for the plugins, look for: .plugin-update-tr .update-message and update to:

    .plugin-update-tr .update-message {
    background-color:#FFFBE4;
    border-color:#DFDFDF;
    display:none;
    }

    This will remove the yellow “update plugins” row, but you’ll still see the count of how many plugins needs to be updated (and the list of “upgrades available”) without the means to “upgrade automatically”

    …Also, you can disable the “upgrade automatically” option and display a custom message:

    https://dd32.id.au/2009/01/29/disable-automatic-upgrades-for-a-customised-plugin/

    Cheers,

    Q

    Hi,

    Have you tried setting the jquery file in your header (assuming you have the jquery file in your templates folder, but it can be anywhere, as long as you reference it correctly):

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.3.2.min.js"></script>

    Also, try changing:

    jQuery(document).ready(function($) {

    to

    $(document).ready(function(){
    	 $("#container").alert("blah");
    	 $(".goodshelf_ul li:first").css("border-top: none;");
    	 $(".custom_ul li:first").addClass("first");
    	 $("#footer .frame:last").css("margin: 0;");
    	 $("#footer .frame:last").addClass("last");
    });

    I use jquery on all my wordpress sites and it work fine…

    hope this helps.

    Q

    Hi,

    To resolve this, just set the following:

    body {
    background:none repeat scroll 0 0 #F2F2F2;
    margin:0;
    padding:0;
    }
    
    /* To remove the padding below the footer */
    
    #footer {
    height:30px;
    margin:0 auto;
    padding:0;
    width:1000px;
    }
    
    #footer #copy {
    float:left;
    font-size:11px;
    margin:8px 0 0; /* adjust the margin as required */
    }
    
    #footer #by {
    float:right;
    font-size:11px;
    margin:8px 0 0; /* adjust the margin as required */
    }

    This should sort out the issue…

    Cheers,

    Q

    According to what I see when I edit your site via firebug, it looks like this style is not defined in styles.css but may be defined inline.. maybe in your header????

    You could just try adding the following to your styles.css and set a font-size using em or px. You can do it for all h tags or define them separately (whichever you require):

    h1, h2, h3, h4, h5, h6 {
    font-size:1.6em !important;
    font-weight:normal;
    }

    or

    h1 {
    font-size:1.6em !important;
    }
    
    h2 {
    font-size:1.5em !important;
    }
    
    h3 {
    font-size:1.4em !important;
    }
    
    h4 {
    font-size:1.3em !important;
    }
    
    h5 {
    font-size:1.2em !important;
    }
    
    h6 {
    font-size:1.1em !important;
    }

    Make sure you include the !important as I have as this will force the browser to override any other defined style for this element, with this one.

    Cheers,

    Q

    Hi,

    There’s not much you can do with the arrow (that I know of)… Also different browsers (well IE) will probably need to have styles defined specific to it in order for it to have the same consistent display across browsers.

    Also, the style you use to round the corners are specific to Mozilla browsers… and I dont think it’ll work in web-kit based browsers like Safari and Chrome (?)… It also will definitely not work in IE.. any version (until IE9 hopefully.. if they get it right for ONCE!!)…

    Try this style for the dropdown:

    form#sbc-search select#cat {
    -moz-border-radius:15px 15px 15px 15px;
    background:none repeat scroll 0 0 #FCB342;
    border:0 solid #BBBBBB;
    float:left;
    font-size:20px;
    height:68px;
    margin:6px 10px 10px 0;
    padding:20px 10px;
    width:200px;
    }

    Also, for the rounded corners you may want to add the following to the elements you want rounded (this should cover you for all major browsers except IE):

    -moz-border-radius: 15px 15px 15px 15px;
    -khtml-border-radius-bottomleft: 15px;
    -khtml-border-radius-bottomright: 15px;
    -khtml-border-radius-topleft: 15px;
    -khtml-border-radius-topright: 15px;
    -webkit-border-bottom-left-radius: 15px;
    -webkit-border-bottom-right-radius: 15px;
    -webkit-border-top-left-radius: 15px;
    -webkit-border-top-right-radius: 15px;
    border-radius: 15px 15px 15px 15px;

    Cheers,

    Q

    Hi,

    I’m not sure where your files are located in relation to your template or site root, but, the function <?php bloginfo(‘template_url’); ?> will output https://your-site.com/wp-content/themes/your-template-folder

    If you are attempting to access files in your root, like an images directory, then you can try <?php bloginfo(‘url’); ?>/images/my-image.png which is the same as https://you-site.com/images. the <?php bloginfo(‘url’); ?> outputs the URL to your blog….

    I suggest first attempting to see if you can correctly navigate to your files in question. So if your mail.php file is located in the same folder as all your other template files, then you should be able to access it by going to: https://your-site.com/wp-content/themes/your-template-folder/mail.php.

    I suggest creating a sub-folder in your templates folder called “mail” (or whatever you like) and refer to your file: <?php bloginfo(‘template_url’); ?>/mail/mail.php.

    Also, please not that these are WordPress functions so if slideshow.php is just a random php file you uploaded, then <?php bloginfo(‘template_url’); ?> etc will not work there. You’ll need to make these php files part of your theme in order for WP to recognize the WP specific code…

    Hope this helps.

    Q

    Hi Katy,

    Go to Themes, editor and open styles.css (if it’s not already opened).

    For the double lines, find #mainleft (line 78) and change to:

    #mainleft {
    display:inline;
    float:left;
    margin:25px 0 0;
    overflow:hidden;
    padding:25px 0 20px;
    width:407px;
    }

    The white line on the right side is actually part of a background image set for the body tag and the header (styles.css line:25 and line:31 respectively). Their CSS code is:

    body {
    background:url("images/bg.gif") repeat-y scroll 0 0 #292929; /* this is the background style with the image of the white line */
    color:#FAFAFA;
    font-family:Century Gothic,Arial,Helvetica,Sans-Serif;
    font-size:13px;
    margin:0;
    padding:0;
    }
    
    #header {
    background:url("images/header.gif") no-repeat scroll left top transparent; /* this is the background style with the image of the white line */
    height:231px;
    margin:0;
    padding:0;
    width:80%;
    }

    You’ll need to edit the image to remove the line on the right and replace it in the background style for body and #header.

    Good luck

    Q

    Hi,

    This is a quick n’ dirty update I whipped up and tested in firebug but try updating the following styles:

    form#sbc-search {
    display:inline;
    width:600px; /*define a width*/
    }
    
    form#sbc-search input#s {
    background:none repeat scroll 0 0 #FCB342;
    border:0 solid #BBBBBB;
    float:left;
    margin:6px 10px 10px 0;
    padding:4px 10px;
    width:100px;
    }
    
    form#sbc-search select#cat {
    -moz-border-radius:15px 15px 15px 15px;
    background:url("arrow.png") no-repeat scroll 88% 50% #FCB342;
    border:0 solid #BBBBBB;
    height:30px;
    margin:0 8px 10px 0;
    padding:7px 20px;
    width:180px;
    }
    
    form#sbc-search input#sbc-submit {
    -moz-border-radius:15px 15px 15px 15px;
    background:none repeat scroll 0 0 #FCB342;
    border:0 solid #BBBBBB;
    height:30px;
    margin:0 0 10px;
    width:100px;
    }

    Ignore the -moz-border-radius styles and add your own radius styles as required. I copied this from firefox so this is the CSS code it outputs. You can then align them vertically and the horizontal spacing using margins or if you apply “position:relative; you can use: top, right, bottom, or left styles (eg: top:10px; etc)

    Anyway, hope it helps.

    Q

    Hi,

    It seems for what you’re trying to do; “single posts EXCEPT if it is in category 8“, your current code
    if ( is_single()||!in_category('8')) {
    Is actually saying if single OR not in cat 8, where you want to say, if single AND not in cat 8…

    Maybe try:

    if ( is_single() && !in_category('8')) {

    Try using AND instead of OR in this case because you want a condition where the page is single, AND the page is not in cat 8… if you use OR, it’ll be true as long as it’s a single page… if you use AND, it’ll only be “true” if both conditions (is single and not in cat 8), is true.

    Hope this helps.

    Q

    Hey Gunnar,

    I just checked this out your issue and played around with the CSS in firebug… it seems that if you remove “font-size:100%;” from the following so it looks like this:

    h1, h2, h3, h4, h5, h6 {
    font-weight:normal;
    }

    This seems to have fixed the issue. Have you tried sizing using em instead of a percentage? This may help (or even px but em may be better for what I think you’re trying to do)…

    hope this helps… Good luck.

    By quickly playing with this in FF using Firebug, it seems you can update the following styles to:

    .featured_img {
    display:block;
    max-width:200px;
    min-height:3em;
    }
    
    .carousel p {
    display:block;
    margin:0 0 0 5px;
    max-width:200px;
    min-height:3em;
    }

    I removed the float:left and added a margin for alignment. Also increased the max-width to 200px since it was set to 180px and the image is 200px wide… this causes the styles for margins etc to align everything with the 180px width defined div. Now it’s aligned below the image (in firefox).

    One other suggestion (if this will be querying multiple posts with the image and title caption)…

    Place the <p>Freestone National Recap 2009</p> inside the

    • tags after the <div class=”featured_img”></div>. This way it’ll hold it’s structure if multiple posts will be displayed in your ul tags

      example:

      <ul class="carousel">  
      
      <li>
      <div class="featured_img"><a title="Freestone National Recap 2009" href="https://02f16cc.netsolhost.com/freestonemx/2010/05/14/freestone-national-recap-2009/"><img alt="Freestone National Recap 2009" src="wp-content/uploads/2010/07/freestone_recap1.jpg"></a></div>
      <p>Freestone National Recap 2009</p>
      </li>
      
      <li>
      <div class="featured_img"><a title="Freestone National Recap 2009" href="https://02f16cc.netsolhost.com/freestonemx/2010/05/14/freestone-national-recap-2009/"><img alt="Freestone National Recap 2009" src="wp-content/uploads/2010/07/freestone_recap1.jpg"></a></div>
      <p>Post 2</p>
      </li>
      
      <li>
      <div class="featured_img"><a title="Freestone National Recap 2009" href="https://02f16cc.netsolhost.com/freestonemx/2010/05/14/freestone-national-recap-2009/"><img alt="Freestone National Recap 2009" src="wp-content/uploads/2010/07/freestone_recap1.jpg"></a></div>
      <p>Post 3</p>
      </li>
      
      </ul>

      You may need to adjust your CSS slightly after that change but should help you avoid future headaches…

Viewing 15 replies - 1 through 15 (of 26 total)