Recent Topics

1 Jun 30, 2008 09:37    

My b2evolution Version: 2.4.2

Hi,

I'm working on a disp page. I'd like to add specific js and css calls in this page.
How can I do this ?

Thanks

2 Jul 03, 2008 06:58

you need to create the actual page and then just insert/include your JS or CSS code in there.

so if you are using an "AboutUs.php", then create that and include that in your skins folder and then call it via the display bit.

You can search on this and find a detailed explanation on Display About us or Display Custom Page...

it's out there.

3 Jul 03, 2008 14:04

Thanks for your answer.

Actually I tought there was a way to had js and css in the head section.
Maybe like a plugin with the SkinBeginHtmlHead method.

4 Jul 03, 2008 14:18

I use the following on an About page, to call specific JS....

<?php if( $disp == 'about' ) { ?>
	 <script type="text/javascript" src="/rsc/js/isiAJAX.js"></script>
      <?php } ?>


and thanks to a tip from Yabba, I use the following to set specific CSS for different pages...

<body class="<?php echo $disp; ?>">


Form is loading...