• Resolved djcaseanova

    (@djcaseanova)


    Ok, so wordpress is given and installed free of charge on my server. I started working on it, using the Scarlett template. However, I want to look at the main source code for the site.

    Basically, if I am on my home page (this works on ANY home page, even the main forum page here) and I go to “view source” it shows all the links and everything. I need to find out WHAT page that is. I have gone through every .php file and .html file that was installed on my server and I can not find anything that resembles this.

    The template I am using puts the Register/Login/Logout links half way down my page under the “Meta” section. I am trying to find a way to create another area up at the top of the page so users do not have to hunt for the links in the middle of the content. I simply don’t know what file to edit to do that, nor what code to put in it once I do find it!

    Thanks, I am totally new to WordPress… worked with vBulletin for so many years… so this is a unique challenge!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi

    The files you are looking for are found in folder /wp-content/themes/{themename}/

    In most cases that meta will be found in sidebar.php although themes have lots of ability to vary what is most common.

    An excellent idea is to put comments at the top and bottom of your theme files after the call the the header and before the call to the footer.

    get_header();
    
    <!-- index.php -->
    
    ===== code ======
    
    <!-- end index.php -->
    
    <?php get_footer(); ?>

    that way, when you View Source, you can see comments telling you which template file the code is coming from.

    welcome to WP!

    Thread Starter djcaseanova

    (@djcaseanova)

    I went through ALL of the wp-content/theme/scarlett/ php files. I see the sidebar area where the links for the login and such are located. However, I am trying to find out what file I would put them in to have the links appear towards the top of my screen.

    my test site: https://www.caseincourt.com/site/

    I am really trying to have a login/logout/register link above the “search box” on the very top right of the screen when it loads.

    in most themes that would be header.php

    some themes include subsidiary files for segments. if so they would most likely be loaded in header.php

    Thread Starter djcaseanova

    (@djcaseanova)

    Thanks, I was able to find it. Turns out that this wasn’t labeled as the other ones were, I totally over looked it.

    One last question you might be able to help answer ??

    Looking at the site, the little logo in the banner… any idea how I can adjust the size so that it allows for a larger image? Currently the logo is set at 35px x 202px I need a taller image. However, I checked the .banner section in the .css files and adjustments don’t make any difference in size, just floating locations. And that is the only area in which I can find the logo image being called up.

    The present logo is assigned in style.css (line 169)

    .blogname h1 {
    background:transparent url(images/logo.jpg) no-repeat;
     .....
    }

    you can add height and width to that CSS to match your logo. I would consider removing it from the h1 and adding it to line 161

    .blogname {
    background-repeat:no-repeat;
    float:left;
    font-family:Georgia,Century gothic,Verdana,Tahoma,sans-serif;
    margin:10px 0 0 0;
    width:400px;
    }

    For some strange reason I can’t open the image folder for this theme in my GoDaddy hosting. I would like to change the logo, but can’t get at it this way. In the File manager, ‘scarlett’ shows up as a file name, but in the directory on the left within Themes, ‘Scarlett’ isn’t there.
    How can I upload a new header image if I can’t get at it through my host? First time this has happened!

    then you should contact the host. Also, you can try from other ways, like FTP.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem locating source code – make EXTRA login/register link’ is closed to new replies.