Forum Replies Created

Viewing 15 replies - 151 through 165 (of 179 total)
  • It’s tricky to control how browsers see things when they zoom in – especially as most browsers do it differently from each other. When I zoom in using Safari on Windows I see it get bigger and then overflow from the box. Safari literally makes things bigger by increasing the font sizes – and it spills over, like when you pull a textbox out from it’s natural size. The content moves with the text as this contains it and the background white just expands with the text, but the menu is overlayed on an image so doesn’t expand when you zoom in.

    Your site looks fine at zoomx1, zoomx2 and zoomx3 and once it goes over it doesn’t affect the site badly. There are ways, but it will take an awfully long time and a lot of research on different browsers to ensure that you don’t loose anything anywhere.

    Have you tried editing one of your old posts? Does that work?

    Check your PHP and that the mail() function works. You’ll need to speak to your host or run

    <?php phpinfo(); ?>

    from a PHP page and check that the mail function is indeed there.

    If you’ve set WP to use SMTP, check your settings.

    When you installed WordPress did you get a welcome email to your admin address, and if you pretend to forget your password do you get an email (btw, before changing it ensure you have access to your database and understand MD5 hashes to rectify a reset password with no notification)?

    Try this in style.css

    #footer {
        text-align:center !important;
    }

    The center will send all of the content to the middle of whichever width the footer is, so you may need to make the width of the footer 800px or whichever size you need.

    I’ve made it !important in case the PayPal script (if it’s scripted) tries to send it to the left.

    <!--[if IE]>
      <style type="text/css">
      .theclass { margin-left:0px; }
      </style>
    <![endif]-->

    Add the above in to header.php. Adjust theclass and the margin or padding etc to get the desired effect – it will only influence IE (all versions).

    You might try the WPMU forum?

    <?php while (have_posts()) : the_post(); ?>
    	<?php
    		$customfields = get_post_custom();
    		$scrp = get_bloginfo('wpurl') . '/wp-content/themes/magasin-dos/functions/timthumb.php?';
    		if (empty($customfields['paddimage'][0])) {
    			$imgpath = $scrp . 'src=' . get_bloginfo('wpurl') . '/wp-content/themes/magasin-dos/images/thumbnail.png' . '&amp;w=68&amp;h=68&amp;zc=1';
    		} else {
    			$imgpath =  $customfields['paddimage'][0];
    		}
    	?>

    That would take the image from whichever URL you have as your custom field – so enter https://flickr.com/myuserid/picturereference for that picture.

    Only problem is that you will need to render the size yourself. So wherever the image actually gets printed, probably something like

    <img src="<?php echo $imgpath; ?>" alt="Something">

    you’ll need to add the max width you want (or the max height):

    <img src="<?php echo $imgpath; ?>" alt="Something" width="68">

    You could try putting floating each one individually, something like this:

    <span style="float:right;"><!--BUTTON 2--></span>
    <span style="float:left;"><!--BUTTON 1--></span>

    That’s presuming the two buttons come from different scripts or images that you manually insert in place after <!–BUTTON–>.

    Also, try

    #allsidebars img {
       float:left !important;
       display:inline;
    }

    in your stylesheet, separately to the above eg.

    Possibly (very possibly) adding this to the bottom of style.css will help:

    #allsidebars img {
       float:left !important;
    }

    It might “brake” the theme, in which case delete it, or it might not do anything at all, in which case delete it!

    To add a search form anywhere in your theme use:

    <?php get_search_form(); ?>

    To style the form and its results see this Codex entry.

    To add the PHP to the actual page entry you’ll need to create a page template for the page. See this Codex entry.

    Just remember that you need to turn &amp; back in to & !

    Yours,
    brgs.me.uk

    Can you give us a URL?

    Also, did the theme originally have a footer or did you add it in? Perhaps you’re updating footer.php but the code for the footer in, say archives.php, is copied and pasted in to there rather than calling:

    <?php get_footer(); ?>

    as will be called from index.php.

    Try checking the bottoms of each file (ie. bottom of archives, single, page, 404 … .php) to see how the footer is being called…

    Also check that under Options -> Miscellaneous your setting for “Store uploads in this folder” is indeed wp-content/uploads. For some reason this has skewed on to something completely random for me on some installs.

    Rather than the_category('')=="name" use is_category('name').
    Codex entry

    <ul id="sidebar">
    	<?php if (is_category('writing')) { ?>
    	<li id="recentWriting">
    		<h2>Last few writings...</h2>
    		<?php query_posts('category_name=writing&amp;showposts=5'); ?>
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    		//stuf
    		<?php endwhile; else: ?>
    		Sorry, no posts matched your criteria.
    
    		<!-- This should never happen (so is redundant)
    		as I'm looking at a post from this category right now. -->
    
                    <?php endif; ?>
    	<?php } else { ?>
    	<li id="recentArt">
    		<h2>Recent Artwork...</h2>
    		<?php query_posts('category_name=art&amp;showposts=8'); ?>
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    		//stuff
    		<?php endwhile; else: ?>
    		Sorry, no posts matched your criteria.
    
    		<?php endif; ?>
    
    	<?php };?>

    You’re getting the links in every post because you’re adding them in to the loop. The loop cycles through every single post repeating the same code, apart from the bits that change such as the post title and the post content.

    To put the next and previous buttons in before the loop starts (so above your posts) you need to put:

    <?php previous_posts_link(); ?>
    <?php next_posts_link(); ?>

    just before this bit:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    To do it after all your posts (after the loop finishes) you need to replace this:

    <?php endwhile; else: ?>

    with this:

    <?php endwhile; ?>
    <?php previous_posts_link(); ?>
    <?php next_posts_link(); ?>
    <?php else: ?>

    You can customise the previous and next links – read the Codex entry to see how to do this and other ways of creating previous and next links.

Viewing 15 replies - 151 through 165 (of 179 total)