SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot Find the .css or .php file containing the code

    Hello - I have spent hours trying to find the code that gets rid of the title in uppercase on a site I am working on called honestdietreview.com. I used firebug to search out that the problem lies in the page_titles of the style.php file however it references line 88 and there is no line 88 that I can see. I then downloaded all of the FTP files to my computer and did a file search for the text-transform: uppercase keyword but to no avail. I have loaded the style page below - I think the code is being hidden somewhere in a backlink file however I have no idea how to find it. I also checked the affilo.css file with no luck. Any thoughts.

    Code PHP:
    <?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::preview();
        }
     
        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');
     
    }
    ?>
    Last edited by Dark Tranquility; Jul 4, 2012 at 10:12. Reason: Adding code highlight

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Hi brian1110. Welcome to the forums.

    It's in this file:

    http://honestdietreview.com/wp-content/themes/affilotheme_2/affilotheme_2/includes/styles/styles.php

    on line 102 (in a set of rules that starts on line 88):

    Code:
    .page-title {
    	/*style_post_title-family*/
    	font-family: "Lucida Sans Unicode", "Lucida Grande", Arial;
    	/*style_post_title-size*/
    	font-size: 25px;
    	/*style_post_title-color*/
    	color: #000;
    	/*style_post_title-style*/
    	font-style: normal;
    	/*style_post_title-weight*/
    	font-weight: normal;
    	/*style_post_title-decoration*/
    	text-decoration: none;
    	/*style_post_title-transform*/
    	text-transform: uppercase;
    }

  3. #3
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Ralph, thanks for taking a crack at this. I included ALL of the code that lies in that .php file in the original post. The file doesn't go to 88, nor 102. If it did I would have been done with this days ago. I read somewhere about hidden .css code in .php files however I understand that hidden code will not affect the style of the webpage. With the fact that it is affecting the style I have to assume the code either lies somewhere else or is being easily hidden.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    O well. If all else fails, you could put this in a style sheet you can access:

    Code:
    .page-title {
    	text-transform: none !important;
    }

  5. #5
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ralph - you rock, honestdietreview is not my main site, I dropped the code you provided (which with all the BS I have looked up I actually knew) in the theme site for honestdietreview and it worked, then I tried my main site and nothing, however I then dropped it a couple more places like the parent theme and voila...
    Last edited by ralph.m; Jul 5, 2012 at 01:05.


Bookmarks

Posting Permissions

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