Theme Icons and Permalinks

Discussion in 'WordPress' started by Xavier_3D, Jan 25, 2011.

  1. #1
    I have two folders inside my WP Theme Folder

    One is Flash
    Other is Images

    Whenever I change the Permalinks to anything but the Default Type

    Say: http://domainname/about/ > Images and Flash Don't work
    But http://domainname/?page_id=13 > Shows Images and Flash

    How can I use the First Example and still show the images and Flash?
     
    Xavier_3D, Jan 25, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That is strange. Try clearing your browser cache. Also, if you have any caching plugins, try clearing those as well.
     
    Dodger, Jan 25, 2011 IP
  3. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Xavier_3D, Jan 25, 2011 IP
  4. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Looks fine here. You have permalinks and I can see images and Flash (the map at the bottom of the page)
     
    Dodger, Jan 25, 2011 IP
  5. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Check for the Individual Pages please. The Admissions/Courses. etc. thats where its not working.
     
    Xavier_3D, Jan 25, 2011 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Scratch that.

    I need to see the code for you header and footer areas. It is not right, it is using the permalink as the base Url when it should be using the wpurl as the base. Post the code that embeds those two Flash objects.
     
    Dodger, Jan 25, 2011 IP
  7. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Header.php

    Footer.php

     
    Xavier_3D, Jan 25, 2011 IP
  8. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Just some crappy coding. See the object and embed code for the source Url's?

    Here is the map flash object in the footer. Do you see what is wrong?
    
    <param name="movie" value="wp-content/themes/arthemia/flash/mapbar.swf">
    <embed src="wp-content/themes/arthemia/flash/mapbar.swf" width="939" height="150">
    
    Code (markup):
    This should be
    
    /* In functions.php, if not already defined */
    define ( THEME_URL, get_bloginfo('stylesheet_directory ') );
    
    /* For every occurance of a path to the theme directory, replace with the Define */
    <param name="movie" value="<?php echo THEME_URL; ?>/flash/mapbar.swf">
    <embed src="<?php echo THEME_URL; ?>/flash/mapbar.swf" width="939" height="150">
    
    Code (markup):
    For the define statement, search through the code in functions.php ... if the theme designer was smart, this constant should already be defined there. If so, use that definition in place of the one I suggested.
     
    Dodger, Jan 25, 2011 IP
  9. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #9
    So I c functions. N I Just see Sidebars.

     
    Xavier_3D, Jan 25, 2011 IP
  10. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Define the constant, and use it.

    Remember that constant is for the Url path, not the include paths for your php files.
     
    Dodger, Jan 25, 2011 IP
  11. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #11
    Don't quite get it :/
     
    Xavier_3D, Jan 26, 2011 IP
  12. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Don't quite get what? You don't know what a constant is used for? A base Url? A base file path? How to reference the constant when applying it to href and src Urls? What don't you get?
     
    Dodger, Jan 26, 2011 IP