• Hello,

    I have a calendar on my blog (www.yunglee.com) that doesn’t look quite right. The person who created the CSS for the calendar told me how to change some things. However, I need to edit the html on my page. How do I go about doing this?
    I mean, I right click my home page, choose view source and the code in there is what I want to change. I tried doing this in the theme editor but its not the same code. I’m guessing it has to do with PHP which I have no experience with at all. PLease help if you can. THanks.

    Yung

Viewing 15 replies - 1 through 15 (of 18 total)
  • If you’re on WordPress 1.5, go to “Presentation => Theme Editor”. From there you have all of the files in your theme and can edit it right there.

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    Hey coldforged, I really like your site by the way…if you’re the same guy i’m thinking of.
    Anyhow, the theme editor doesn’t display what the actual source page displays so I can’t edit what I’m trying to edit. Weird eh?

    Thanks, I’m sure mine is the site you’re thinking of since it is obviously a thing of beauty which is admired by all :). Oh, I kill me.

    Well, your templates will be different from the resultant HTML generated by WordPress. The templates tell WordPress how to generate the look of your site, so those templates are filled with PHP that won’t show up in the eventual HTML if you view source.

    Your calendar will typically be in the sidebar.php file. However, if the person who created your CSS told you to modify how the calendar is created that will be tricky… the calendar — if it’s a typical WP calendar — is generated dynamically inside a function. It’s not static HTML.

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    oh bbbbbbooooooooo….

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    so CAN it be done? If yes, how? : )

    It would help if we knew what you wanted to change.

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    Okay, on my blog, there’s a section at the bottom of the calendar that looks out of place. Actually, it shouldn’t even be there. The person who helped me with the CSS said that it could be because of the footer in the HTML source code since her blog using the same calendar CSS looks fine. I wanted to edit this to see if that is the cause of the problem but I can’t edit to remove the footer in the section of the calendar : (

    Moderator James Huff

    (@macmanx)

    The sidebar can be edited via the Sidebar Template (usually sidebar.php) and the footer can be edited via the Footer Template (usually footer.php).

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    For the particular theme I’m using (Landzilla), there is no sidebar.php or footer.php file. And, I’m not trying to delete the actual footer but if you view the source, in the section where the calendar is, there is a footer tag there that I want to remove.

    It must be in the main index.php then.

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    well, yes, I put the calendar div id in the main index.php. The sidebar info is located there too. I guess I just need to find a way to edit the static html.

    That’s just it, you can’t edit the static HTML because it doesn’t exist. WordPress generates the content dynamically every time it’s requested.

    Thread Starter yung_chi_lee

    (@yung_chi_lee)

    Ohhh I c : (

    <h2>Calendar</h2>
    <div id=”calendar”>
    <?php get_calendar(); ?>
    </div>

    Precisely.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘How to edit my source code?’ is closed to new replies.