www.webdeveloper.com
Results 1 to 3 of 3

Thread: Just Can't Find the FTP File Containing the Code

  1. #1
    Join Date
    Jul 2012
    Posts
    3

    Just Can't Find the FTP File Containing the Code

    Ok - so I have a site that I was working on...honestdietreview.com - then anything with <title> in it started appearing in all uppercase letters. Posted a few things here and there and then put in a solid 8 hours trying to figure this out. Here is what I have done so far and what the pages look like. Went to Firefox and installed Firebug - was able to get two solid things out of that.

    1. Using the search feature I found the instance on the Contact Us page (I pulled the welcome and about us page titels. I can correct the formatting in the right hand CSS window however I cannot locate the code in any of the .css or .php files. So I assumed I would load up Filezilla and find it on line 88 of the style.php page - THERE IS NO LINE 88.

    Shot of the CSS in Firebug - styles.php (line 88)
    .page-title {
    -moz-text-blink: none;
    -moz-text-decoration-color: -moz-use-text-color;
    -moz-text-decoration-line: none;
    -moz-text-decoration-style: solid;
    color: #000000;
    font-family: "Lucida Sans Unicode","Lucida Grande",Arial;
    font-size: 25px;
    font-style: normal;
    font-weight: normal;
    text-transform: uppercase; <------MY OFFENDER
    }

    Here is the .php page. Which I think might contain the "hidden" code.
    <?php
    header('Content-type: text/css');

    $preview = '';
    if (!empty($_SERVER['HTTP_REFERER'])) {
    $ref = parse_url($_SERVER['HTTP_REFERER']);
    if (!empty($ref['query'])) {
    $get = array();
    parse_str($ref['query'], $get);
    if (isset($get['stylesheet']) && isset($get['preview']) ) {
    $preview = $get['stylesheet'];
    define( 'AFFILO_PREVIEW' , $preview);
    }
    }
    }

    /** Load WordPress Bootstrap */
    $basePath = dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))));
    require_once($basePath . '/wp-load.php');

    if (!defined('AFFILO_THEME')) {
    if (strpos($preview, '/affilotheme_2')) {
    echo "@import url('./affilo.css');\n\n";
    } else {
    //default theme variation of a subtheme....
    }
    } else {

    if (AFFILO_PREVIEW) {
    Affilo:review();
    }

    if (affilo_get_current_theme() == AFFILO_THEME) {
    $themeName = AFFILO_THEME;
    echo '/* ' . AFFILO_THEME . ' */' . "\n";
    echo "@import url('./affilo.css');\n\n";
    } else {
    $themeName = affilo_get_current_theme();
    $theme = affilo_get_theme($themeName);
    $stylesheet = "{$theme['Theme Root URI']}/{$theme['Stylesheet']}/style.css";
    //echo '/* ' . AFFILO_THEME . ' / ' . $themeName . ' */' . "\n";
    //echo "@import url('$stylesheet');\n\n";

    }

    if ($variant = affilo_get_current_variation()) {
    $var = affilo_get_theme_variation($themeName, $variant['Title']);
    $stylesheet = "{$var['Theme Root URI']}/{$var['Stylesheet']}/style.css";
    echo '/* ' . AFFILO_THEME . ' / ' . $themeName . ' / ' . $var['Name'] . ' */' . "\n";
    echo "@import url('$stylesheet');\n\n";
    }

    echo '/* ' . AFFILO_THEME . ' / User Defined Styles */' . "\n";
    do_action('affilo_styles');

    }
    ?>

    I also went into the affilo.css sheet and didn't find any instance of text-transform: uppercase that related to the page title.

    So next I downloaded ALL of the files for the site to my computer - used filesearch program and searched all strings for the text-transform: uppercase reference and still no luck.

    After reading and reading I know the code is here somewhere in my FTP files but I think it is being hidden with some backlinks....I just can't find where.

    Any help would be GREAT.

  2. #2
    Join Date
    Jul 2012
    Posts
    3
    FYI - I have $30 to anyone who walks me to the fix....through Paypal.

  3. #3
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    Almost everything in that stylesheet comes after this comment:
    Code:
    /* AffiloTheme v4 / User Defined Styles */
    And this is the code at the end of styles.php:
    Code:
    echo '/* ' . AFFILO_THEME . ' / User Defined Styles */' . "\n";
    do_action('affilo_styles');
    Therefore it is "do_action('affilo_styles')" that inserts most of the styles, including the problematic one. I would hazard a guess that there's somewhere in the admin panel to add custom styles to this theme.

    Of course, I wouldn't worry about it too much as it seems you already fixed it with this:
    Code:
    .page-title {
    	text-transform: none !important;
    }
    Every fight is a food fight when you’re a cannibal.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles