Viewing 9 replies - 1 through 9 (of 9 total)
  • It looks to me like you’re not referencing your .css
    file in the child pages of your About page.

    <link href=”https://ocklaw.com/new/wp-content/themes/ocklaw-21/style.css&#8221; rel=”stylesheet” type=”text/css” media=”screen” />

    Is what is missing I think.

    Thread Starter davy_yg

    (@davy_yg)

    Someone once told me because this:

    <link rel="stylesheet" type="text/css" media="screen" href="sidebanner.css" />
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/jquery.cycle.all.js"></script>
    <script type="text/javascript">
    
    $(function() {
    	$('#slideshow').before('<div id="nav" class="nav">').cycle({
    	fx:     'fade',
    	speed:  'fast',
    	timeout: 3000,
    	pager:  '#nav',
    	before: function() {
    	if (window.console) console.log(this.src); }
    });
    });

    [Please post code or markup snippets between backticks or use the code button.]

    appears before the HTML. How to erase them ? I already disable the slideshow JS in function.php and the view only appears correctly offline but not online.

    Yes, I do have the css enable, check the view – source.

    Any other ideas ?

    Thanks.

    Have you tried moving the call to the css file outside the script? When going through the page with firebug its as if it has no css. Maybe its not working inside the script. Hope it helps

    Thread Starter davy_yg

    (@davy_yg)

    what do you mean by moving it outside the script ?

    I have :

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Octlaw.com</title>
    
    <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" media="screen"  />
    
    <?php wp_head(); ?>
    </head>

    [Please post code or markup snippets between backticks or use the code button.]

    Strangely enough, in localhost the css only appears only if I login to admin page at the same time, otherwise it disappeared.

    When I view your source code for the pages with the problem, I see:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Which looks to not be recognized.
    then you close the script tag with </script> after the following:

    /* <![CDATA[ */
    var shutterSettings = {"msgLoading":"L O A D I N G","msgClose":"Click to Close","imageCount":"1"};
    /* ]]> */

    and after this your code is been picked up.

    I think the problem is on the on the third and fourth line you have:

    <script type=”text/javascript” src=”js/jquery.cycle.all.js”></script>
    <script type=”text/javascript”>
    The second script tag is not been closed so I think the doctype info and call to the .css is not been seen. Try closing the script with </script> (you may need to close it after your function).

    I’m fairly new to this stuff so hope this helps.

    Thread Starter davy_yg

    (@davy_yg)

    The thing is, I never add:

    <link rel="stylesheet" type="text/css" media="screen" href="sidebanner.css" />
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/jquery.cycle.all.js"></script>
    <script type="text/javascript">
    $(function() {
    	$('#slideshow').before('<div id="nav" class="nav">').cycle({
    	fx:     'fade',
    	speed:  'fast',
    	timeout: 3000,
    	pager:  '#nav',
    	before: function() {
    	if (window.console) console.log(this.src); }
    });
    });

    [Please post code or markup snippets between backticks or use the code button.]

    above HTML. It appears by it self. I wonder why. I already disable them in functions.php and it still appears on the pages.

    Im not to sure to be honest. I’d try put maybe a </script> before the html to see if that closes the script and loads the page correctly. Then try find why this function is loading.

    Sorry I couldn’t be of any more help

    Try disabling your plugins so you can isolate the problem. All that mystery code is loading before the Doctype. You also have a broken file called dropdownnav.js that might be contributing to the problem.

    Thread Starter davy_yg

    (@davy_yg)

    Strange I have tried disabling :

    function my_scripts_method() {

    The whole link to JS.

    in functions.php

    and the pages still does not load correctly. What else could cause the problem ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Page’ is closed to new replies.