Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Add some .js file

DmcBoosDmcBoos New
edited June 2015 in Vanilla 2.0 - 2.8

i want to add a some .js script like this..
ex : <script src="http://example.com/js/animation.js" type="text/javascript" charset="UTF-8"></script>

Comments

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Find following lines in class.minusbaselinethemehooks.php:

        public function Base_Render_Before($Sender) {
            if ($Sender->MasterView == 'admin') return;
    

    and add $Sender->AddJsFile($this->GetResource('js/animation.js', false, false)); below. You also have to put your js file in the js folder of the MinusBasline theme.

  • Options

    thanks. <3 but i want to add some .js Link

  • Options

    @R_J said:
    Find following lines in class.minusbaselinethemehooks.php:

        public function Base_Render_Before($Sender) {
            if ($Sender->MasterView == 'admin') return;
    

    and add $Sender->AddJsFile($this->GetResource('js/animation.js', false, false)); below. You also have to put your js file in the js folder of the MinusBasline theme.

    after add this code my site load blank page :(

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Try $Sender->AddJsFile('animation.js'); instead of the above.

  • Options
    DmcBoosDmcBoos New
    edited June 2015

    Great @R_J =) it work! :+1:

Sign In or Register to comment.