• Resolved admin_michelle

    (@admin_michelle)


    I’m attempting to make a website for someone and I was wondering how do you create the different web pages that the links will link to?

    I have created a child theme of the theme Delicate

    Do I just copy the header.php and rename it (for example about.php, biography.php etc) and then place it inside the Delicate Theme map (where the current header.php is situated or do I put the new ‘link pages’ inside the child theme – in either of these cases what would the a href link be…?

    Would be very grateful for any help on this topic…

    P.s This is my URL

    https://test.michellehedberg.net

Viewing 13 replies - 31 through 43 (of 43 total)
  • sam

    (@samfusion)

    #special page
    {CSS for Special Page
    }

    PHP for special page in header.php

    <?php if ( is_page('special-page') ) { ?>
         <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style2.css" type="text/css" media="screen" />
    <?php } else { ?>
         <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php } ?>
    Thread Starter admin_michelle

    (@admin_michelle)

    Ok,

    You have convinced me Esmi, I’ll start from scratch because it is becoming increasingly head wrecking and frustrating to work this way, something that I could have just coded myself in 2 minutes takes a week having to rely on help from support forums (and I take this opportunity again to say how very very grateful I am to everyone who has helped me out).

    But I do feel apprehensive though, because for example in the theme Delicate that I used to modify my site, they had set specific measurements for the header image that didn’t suit my needs at all and to get around that I did have to create a child theme, change the permission of the hooks.php file and do some serious complicated coding just to get a different sized image so… I hope I don’t have to do all that again to get the ‘site’ to look the way I want…

    Once again

    BIG thanks

    Michelle

    Thread Starter admin_michelle

    (@admin_michelle)

    and thanks for that bit of code there Samfusion

    Do I put this in the header.php

    <?php if ( is_page(‘special-page’) ) { ?>
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/style2.css” type=”text/css” media=”screen” />
    <?php } else { ?>
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <?php } ?>

    and do I exchange the word ‘special-page’ to my page ID (for example ‘current’) or is it actually going to say special page

    and what about the php bloginfo(‘stylesheet_directory am I supposed to change that for something else?

    Still a bit confused…

    Thread Starter admin_michelle

    (@admin_michelle)

    Esmi,

    How do I do to completely ‘start from scratch’. Even now when I changed to a different theme, it appears loads of my old settings came with it. If, as you say it is bad to have added your own hand codings it might be a good idea to start ‘totally afresh’ how do you do this

    Michelle

    esmi

    (@esmi)

    I’d suggest that you start by looking for a theme that has a similar(ish) layout and functionality to your final site. Then start tweaking this theme but-by-bit. That’s a lot easier than trying to start with a completely blank theme. Delicate should be custom-menu ready – which means that a child of Delicate should inherit that functionality.

    Try creating a new child theme that contains just the minimum style.css to start with. And that style.css should only import the parent’s stylesheet(s). Then try setting up a custom menu via Appearance -> Menus. At this point, use Firebug on the menu items and you’ll see all of thee different classes you have to play with in that menu – including a .current-menu-item class.

    Thread Starter admin_michelle

    (@admin_michelle)

    Dear Esmi,

    That makes sense, thanks for all your help. Firebug really is an amazing invention. I think I’m finally beginning to get my head around how WordPress works now…

    esmi

    (@esmi)

    Cool! ?? I appreciate that it will be hard initially as this will be a new way of working for you but it will pay huge dividends longer term – trust me. I used to hand code every one of my sites. Now it just seems like that was soooo much work whilst WordPress is more fun.

    Thread Starter admin_michelle

    (@admin_michelle)

    Hi again Esmi,

    I’m having problems already. I want to make the menu bar black (like the way I had it before) but I can’t find any ‘easy’ ways of doing this through wordpress’ dashboard/menu. They give you very little options, you can basically just change the color of the links.

    When I look at the original theme’s code in their header.php and their style sheet I can’t figure it out either.

    I thought, by adding background: #000000; to the code in the css would make it happen (like you can see below here) but it didn’t work

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    Have you any idea how you can do this (you obviously do because you are great : ) but do you mind telling me is the question? You have spent so much time helping me out already I feel bad asking you again)

    My URL is still

    https://test.michellehedberg.net/

    sam

    (@samfusion)

    background-color:#000000;

    esmi

    (@esmi)

    Use Firebug to locate exactly what element wraps the entire menu. In this case, it looks like <div class=top">[...]</div> would be the one to target. You can pre-test this in Firebug by right-clicking on the .top CSS in the style panel of Firebug, selecting “New Property” and adding the relevant CSS. So:

    .top {background:#000;}

    in the child’s style.css file should give you the black menu that you want.

    Thread Starter admin_michelle

    (@admin_michelle)

    I see… yes I think I’m actually beginning to get it now : ) Just one very last thing, how do you change the word ‘Home’, I can’t seem to get at it anywhere, I feel like I have looked everywhere both in the codes (using firebug as well) and in the wordpress dashboard. Since it is going to be a Swedish website I needs to say ‘Start’ instead.

    I would actually like one of the ‘pages’ to be the home page instead of the current one because it looks too blog like so if I could use one of the pages (that layout appear to be more similar to what I had in mind which would mean I will have to make less changes) would be perfect.

    Is it possible to make one of the ‘pages’ your home page (how?) or will you have to change the current home page to look like the others?

    I can’t tell you how much I appreciate all the help you have been giving me, hopefully I’ll manage on my own and will leave you in peace soon : )

    esmi

    (@esmi)

    how do you change the word ‘Home’

    The easiest way is by setting up a custom menu as you can change any menu item’s “Navigation Label” via the custom menu set up.

    I would actually like one of the ‘pages’ to be the home page instead of the current one because it looks too blog

    Again – real easy. See creating a static front page.

    Thread Starter admin_michelle

    (@admin_michelle)

    Thanks

Viewing 13 replies - 31 through 43 (of 43 total)
  • The topic ‘How to make different 'web pages' and href them’ is closed to new replies.