This topic contains 3 replies, has 2 voices, and was last updated by Sean Sean 3 years, 1 month ago.

Creating navigation view file and adding CSS and Js

  • Jigar
    Jigar
    Participant

    Posts: 32
    Member Reply #1035

    Hello,

    I am talking about Admin panel-3,

    I am working on PHP application, what i did is, taken panel home page and remove all contents of <span style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”><div </span><span class=”html-attribute-name” style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”>class</span><span style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”>=”</span><span class=”html-attribute-value” style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”>page-content</span><span style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”>”> and saved this page as my view_navigation.php, then i am including this in my all view files, so whenever i need to modify my navigation i will just change one file,</span>

    Now my question is, Do i need to add css files which are written in between <!– BEGIN GLOBAL MANDATORY STYLES –> …<!– END GLOBAL MANDATORY STYLES –> in all my all view pages or if i keep in view_navigation file is is sufficient!

    Why i am asking because if i am not adding <link href=”<?php echo base_url()?>assets/global/plugins/bootstrap/css/bootstrap.min.css” rel=”stylesheet” type=”text/css”> in my view file then some form inputs and labels are not showing correctly, as soon as i add this css in view file all works fine, but new problem creates, my top navigation is getting shifted down, means it look like if above css loaded two times, creates problem in my top mega menu navigation,

    What is correct way to create separate navigation view file?

    Thanks,

    Sean
    Sean
    Keymaster

    Posts: 4472
    Support Staff Reply #1058

    Hi :),

    Can you provide us a test link to your site ? We will need to check your code online in order to provide you more effective support. You can pass us the link in a private reply(check “set as a private reply” checkbox before posting your reply).

    Thanks.

    Jigar
    Jigar
    Participant

    Posts: 32
    Member Reply #1066

    Hello,

    Thank you for your post, but currently my pages are at localhost, so only thing is i can do is share my complete desk if you wish to do with any remote desk sharing applications,

    Let me know if this fits,

    Thanks,

    Sean
    Sean
    Keymaster

    Posts: 4472
    Support Staff Reply #1067

    Hi,

    Sorry, our support policy does not allow that. We can only check your code in your test server. If possible please deploy it your test server so we can check it only.

    Thanks.

You must be logged in to reply to this topic.