Forum Replies Created

Viewing 15 replies - 31 through 45 (of 45 total)
  • Forget everything I just said.

    Your theme actually has a custom logo built in! Check out the theme options in your dashboard!

    It is going to take some work to make it fit in that theme.

    1. upload your image to your theme’s image directory.

    2. goto your wordpress dashboard=>appearance=>editor

    It should have style.css open automatically. Look for this code:

    .header
    {
    	width: 940px;
    	margin: 0 auto;
    	height: 155px;
    }

    Add these lines to make it look like this:

    .header
    {
    	width: 940px;
    	margin: 0 auto;
    	height: 155px;
             background-image: url("images/YOUR_FILE");
    	background-repeat: no-repeat;
    }

    Don’t forget the extension on your picture file .jpg or .png, etc.

    From there, we’ll have to mess with your other elements to make it look right.

    Forum: Fixing WordPress
    In reply to: Redirect Error

    I’m assuming I need to change the code of !is_user_logged_in() to my custom code to check if they are logged in, correct? I store it in a cookie, so I’d check that.

    You are correct. feel free to use your custom code there.

    Forum: Fixing WordPress
    In reply to: Redirect Error

    One more tweak… it’s a good idea to add an exit statement. Here is a revised code snippet:

    if ( is_page('commerce-tracking-search') && !is_user_logged_in() ) {
           header("Location: https://www.dee-inc.com/index.php/dee-e-commerce-center/login/?FP=/index.php/dee-e-commerce-center/commerce-tracking-search/");
           exit;
       }
    Forum: Fixing WordPress
    In reply to: Redirect Error

    Ok. I’ve got something to try.

    For giggles and grins, bear with me and try this:

    In the wordpress dashboard, goto appearance=>editor

    On the right hand side, click on page template.

    In the editor screen, look for get_header();

    copy this ABOVE get_header();

    if ( is_page('commerce-tracking-search') && !is_user_logged_in() ) {
           header("Location: https://www.dee-inc.com/index.php/dee-e-commerce-center/login/?FP=/index.php/dee-e-commerce-center/commerce-tracking-search/");
       }

    This should work if you created the commerce-tracking-search as a page within wordpress, using the default page template, and the page slug is commerce-tracking-search.

    in your css, look for

    .feeds .rss
    {
    	padding: 0px;
    	margin: 0px;
    }

    Replace with

    .feeds .rss
    {
    	display: none;
    }

    Forum: Fixing WordPress
    In reply to: Redirect Error

    Hmm… Let me ask you a couple of questions that might get me thinking in the right direction:

    1. How did you create the page for commerce-tracking-search? Did you create it as a wordpress page?

    2. If you go into WordPress Dashboard=>appearance=>editor, do you see Page Template listed on the right hand side? If not, list the first ten things you see in that right hand column.

    Fernandez:
    I love catterwonky sites ??
    I’ll be happy to help you sort it out.

    Before I go moving things around, let’s get a feel for your site description (summary statement). Go ahead and set that so I can see how big it will be.

    For most themes, you can set that in the wordpress dashboard under settings=>general=>tagline

    Forum: Fixing WordPress
    In reply to: Redirect Error

    Oh, wow. You are doing a true dynamic redirect. Ok, then.

    I think the code you want to place will look like this:

    if ( is_page('51') && !is_user_logged_in() ) {
           header("Location: https://www.google.com");
       }

    The trick is going to be getting before the header call.

    You could add this just above get_header() of your page.php file, then it will run this check before a page loads. Change 51 to whatever your page id is that you want to check.

    Forum: Fixing WordPress
    In reply to: Redirect Error

    Yeah, if you are telling it to call the header function within the editor, then it will add that code at a point when the header’s already been called.

    Besides that, I am not sure that what you are trying to do is good practice. Are you trying to permanently redirect one page?

    I would check out a plugin called Quick Page/Post Redirect – it may do what you are looking for, and do it in a way that won’t kill your google rankings.

    Forum: Fixing WordPress
    In reply to: wp 3.0.4

    I would backup and then upgrade.

    I do not know the technical details for this release, but it is a security release, which is enough for me not to even ask questions. The upgrade for all of my sites went without a hitch.

    Security releases are very important. It is easier to backup your site, install a security upgrade, and restore a backup if something goes wrong than it is to repair a hacked wordpress site! I learned that the hard way!

    Here is the wordpress page for backing up your site.

    You could try something like this where you populate your left sidebar:

    <?php $my_query = new WP_Query('category_name=Tidbits&posts_per_page=5'); ?>
    
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
      <!-- Do special_cat stuff... -->
    <?php endwhile; ?>

    For reading on multiple loops see The Loop

    Stay with it, Senzavento, you will get it. I have successfully installed the greyzed theme and changed the header image on my test site.

    All I did was to upload the image that I wanted to my
    /wp-content/themes/greyzed/images/ directory.

    Then, I went into my style.css file and I changed this:

    #header {
    	margin: 0px;
    	padding: 0;
    	height: 260px;
    	width: 1054px;
    	color: #000;
    	}

    To This:

    #header {
    	margin: 0px;
    	padding: 0;
    	height: 260px;
    	width: 1054px;
    	color: #000;
             background: url('images/YOUR_IMAGE_FILE_NAME_HERE') top center no-repeat;
    	}

    Make sure to include the .jpg or .png or similar extension to your filename.

    Senzavento, try playing with your CSS file:

    #header
    {
    	background-image: url(images/mypicture.jpg);
    	background-repeat: no-repeat;
             background-position: left;
    }

    brlbeagle,

    Yours will be trickier because you already have a background image for a header.

    Try playing around with this in your css file – it basically lets you add a small logo as a background for your site-description area:

    .header .description
    {
    	color: #000;
    	font-size: 1.4em;
    	margin: 0;
    	padding: 5px 0 0;
    	text-align: center;
    	font-weight: bold;
    	background-image: url(images/example.jpg);
    	background-position: center bottom;
    	background-repeat: no-repeat;
    	height: 104px;
    }

    So, both exampleURL.com/home/wp-admin and exampleURL.com/wp-admin
    result in 404 pages?

Viewing 15 replies - 31 through 45 (of 45 total)