Forum Replies Created

Viewing 15 replies - 196 through 210 (of 335 total)
  • Alex Cragg

    (@epicalex)

    at a guess, id say it looks like the info at the top of the css hasnt been closed off before the css tags start, so it thinks its all part of the theme title.

    at the top of the css it should look something like this

    /*
    Theme Name: WordPress Default
    Theme URI: http://wordpress.org/
    Description: The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.
    Version: 1.6
    Author: Michael Heilemann
    Author URI: http://binarybonsai.com/
    */
    
    body {
    	font-size: 62.5%;
    	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    	background: #d5d6d7 url('images/kubrickbgcolor.jpg');
    	color: #333;
    	text-align: center;
    	}

    but if the */ after the info at the top is missing, it doesnt separate the css from it.

    might not be the problem though, what does your css file start with?

    Alex Cragg

    (@epicalex)

    yeah, once you’ve signed up to analytics, get your javascript an put it in a template that appears on every page, eg footer.php etc

    Thread Starter Alex Cragg

    (@epicalex)

    ok, sorted thanks.

    Thread Starter Alex Cragg

    (@epicalex)

    haha, fair enough, i read it through and thought it made sense but then it would to me wouldn’t it. and anyway, the bump got your attention 😉

    so i have a new sidebar, that is called when on any page that is in my new Shop template. The shop template is applied to 4 separate Pages, and therefore on each of those Pages the new sidebar is called.

    In that sidebar i want to show an unordered list of four items that i write in myself. Each list item will have a class of, for example, ‘yes’ or ‘no’. In my css all of the times where a yes class is shown a tick will be output next to the list item. if it is no then the tick will not be there.

    so the list will need to be different depending on what p
    Page you are on, as it is showing how far through the order process you are.

    for the first page, where none of the list items will have the class yes, as nothing has been done, it will look like this.

    <ul>
    <li class="no">First Item</li>
    <li class="no">Second Item</li>
    <li class="no">Third Item</li>
    <li class="no">Fourth Item</li>
    </ul>

    As you progress though the shop, to the checkout and transaction results page etc, the list needs to be different. like so for example:

    <ul>
    <li class="yes">First Item</li>
    <li class="yes">Second Item</li>
    <li class="no">Third Item</li>
    <li class="no">Fourth Item</li>
    </ul>

    you get the picture.

    So to decide which list to display, and instead of having a different sidebar for each Page of the Shop template, i wanted to create a series of if statements.

    The only problem is that i get a parse error saying unexpected < etc when i put the list i created in the if statement straight up. So i would like to know how to display the contents of the if statement, rather than just using it to perform a function.

    I know that the if statement is correct, cause as i said i can get functions to be performed such as wp_list_pages. But as there is no function for what i want, this working is no use to me.

    I hope ive explained what i want better now?

    I know that there is another solution to this, and that is to create different sidebars, and include an if statement in the Shop template to decide which one to display, but i dont want to have to create all the extra files if i can avoid it.

    thanks otto, hope you can help

    Thread Starter Alex Cragg

    (@epicalex)

    *your free bump for the day*

    Alex Cragg

    (@epicalex)

    haha, yeah, it sure was!

    Forum: Installing WordPress
    In reply to: API Key
    Alex Cragg

    (@epicalex)

    see above – beat me too it

    Alex Cragg

    (@epicalex)

    do you have ftp access to your site? you need to use that.

    Forum: Fixing WordPress
    In reply to: Contact Us Form
    Alex Cragg

    (@epicalex)

    Forum: Plugins
    In reply to: Ticket Support Plugin?
    Alex Cragg

    (@epicalex)

    have a look at http://www.helpcenterlive.com/ and http://www.phpsupporttickets.com/ , but there are loads of others. you can install them into a subdirectory, eg. mydomain.com/support

    Alex Cragg

    (@epicalex)

    ok, i missed that one. so this one by the click image is a standard text widget. so this time, go to your plugins list, then on sidebar widgets, click edit on the right. find this section `function widget_text($args, $number = 1) {
    extract($args);
    $options = get_option(‘widget_text’);
    $title = $options[$number][‘title’];
    if ( empty($title) )
    $title = ‘ ‘;
    $text = $options[$number][‘text’];
    ?>
    <?php echo $before_widget; ?>
    <?php $title ? print($before_title . $title . $after_title) : null; ?> <— here
    <div class=”textwidget”><?php echo $text; ?></div>
    <?php echo $after_widget; ?>and delete or comment out the php bit ive indicated - so the$title ? print` etc bit. The only problem with this is that for every text widget you have, you wont get a title. This is an issue that has been raised before, and it should be resolved in the next widget release. hope thats all clear? as for your h2s, add this to your css h2.widgettitle {
    color:#000000;
    font-family:Times New Roman,Verdana,Arial,Sans-Serif;
    font-size:14px;
    font-weight:bold;
    margin:0px;
    padding:5px 0px; } this should differentiate between a normal h2 and a widget h2, and it now doesnt have the dots.

    Alex Cragg

    (@epicalex)

    ok, you have this in your css file, which is probably style.css:

    #content h2
    border-bottom:1px dotted #C0C0C0;
    border-top:1px dotted #C0C0C0;

    that is what is creating your dotted lines. if you delete both of those lines(not #content h2) then the dotted lines will go away wherever you use a h2 title.

    did you delete the lines that i said about before? I take it that it is for your google search box that you wanted to remove your title, as its the only one that is blank?
    For your google search box, on your plugins list, look for google search widget, and click on edit on the right. then remove . $before_title . $title . $after_title – you’ll find it about half way down.

    Alex Cragg

    (@epicalex)

    if they do the same i apologise.

    maybe try out the following:
    <?php if (function_exists('dynamic_sidebar')) {dynamic_sidebar(2); } ?>
    you dont need to end with and endif for this first one, or maybe try

    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar(2) ) : ?>

    fow which you need endif.
    change 1 and 2 appropriately. they’re just other ways of writing it.

    also, ive never tried having two dynamic sections in one sidebar.php so maybe thats what the problem is?

    maybe do you need the is_home before. so like this

    <?php
    if (is_home()) { if (function_exists('dynamic_sidebar')) {dynamic_sidebar(1);
    } elseif (is_page(3)) { if (function_exists('dynamic_sidebar')) {dynamic_sidebar(2);
    }?>

    not sure that you need anything else in there…

    try them out at let me know, sorry if it isnt a straight forward fix

    Forum: Plugins
    In reply to: Author avatars?
    Alex Cragg

    (@epicalex)

    the plugin creates a call for the gravatar, and normally people put the php code in the comment section, but i don’t see there is any reason why you cant adapt it for posts. the only thing is, when you post a comment it links to your email address, where as a post doesn’, but im sure you could hack the plugin.

    Alex Cragg

    (@epicalex)

    what i mean is, the dotted lines have probably been added in using css, as they aren’t a default function. If you give us a link to your site if its live i could tell you better what to change.

Viewing 15 replies - 196 through 210 (of 335 total)