Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Modifying Website Theme

Discussion in 'General Discussion' started by Xarzu, Mar 23, 2018.

  1. Xarzu

    Xarzu Registered

    Joined:
    Jan 24, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    The theme I am using has a slider -- a panel of automatically changing images to display a topic that the user can choose -- but it only shows a few slides. I want to extend it to a dozen slides. I did simple text searches to determine which files in the theme are used code files to provide the functionality to the slider. That was the easy part. I was able to extend the code from the few slides to 12 slides.

    Now comes the more difficult and hidden part. As I see it, each slide has two parts that are not hard coded. First, each slide has a caption -- a text description. Secondly, each slide has a URL associated with it that is where the browser goes if the user clicks on the slide. These two things are not hard coded in any of the PHP or other files, as far as I can tell. They can be edited by the admin in the drupal backend admin settings.

    So I assumed that these fields are somehow set and retained in the database. But I did a search on a downloaded copy of the database and I did not find this text.

    Please advise. What additional work do I need to do to complete this task?

    I suppose I could just forge ahead. Obviously this data is being stored somewhere. Maybe they are stored in the database in an encrypted form for security reasons. I could do an ftp upload of the site theme files. But then what? Do I uninstall the theme and then reinstall it? Do I just deactivate it and then reactivate it? How do I make my code changes work?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might do better to ask about this on the drupal forums, or contact the developer of the theme directly:
    Support | Drupal.org
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Xarzu

    Xarzu Registered

    Joined:
    Jan 24, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    The theme I am using has a slider -- a panel of automatically changing images to display a topic that the user can choose -- but it only shows a few slides. I want to extend it to a dozen slides. I did simple text searches to determine which files in the theme are used code files to provide the functionality to the slider. That was the easy part. I was able to extend the code from the few slides to 12 slides.

    Now comes the more difficult and hidden part. As I see it, each slide has two parts that are not hard coded. First, each slide has a caption -- a text description. Secondly, each slide has a URL associated with it that is where the browser goes if the user clicks on the slide. These two things are not hard coded in any of the PHP or other files, as far as I can tell. They can be edited by the admin in the drupal backend admin settings.

    So I assumed that these fields are somehow set and retained in the database. But I did a search on a downloaded copy of the database and I did not find this text.

    Please advise. What additional work do I need to do to complete this task?

    I suppose I could just forge ahead. Obviously, this data is being stored somewhere. Maybe they are stored in the database in an encrypted form for security reasons. I could do an ftp upload of the site theme files. But then what? Do I uninstall the theme and then reinstall it? Do I just deactivate it and then reactivate it? How do I make my code changes work?

    The theme is called "impact_theme" and as far as I can tell all the code for it resides in

    sites\all\themes\impact_theme

    The README.txt file for the theme is:
    - Removed -

    I made a subtheme according to this page: Creating a sub-theme.

    I logged in to the Administrative Dashboard and I made the subtheme as the default theme.

    And then the website immediately crashed and I am unable to see anything apart from "HTTP ERROR 500".

    What do you think I should do now?

    For completeness sake, I will list here the screenshots I made when I was comparing my modifications to the original theme.

    I am thinking what I should do now is try to step back and see if I can narrow down the point where the website crashes. But in order to do that, I wonder if it will do any good to just modify the files. I mean, the subtheme is already set as the default theme. How can I undo that without being able to log into the Admin Dashboard?

    - Removed -
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I've merged your new thread into this one from back in March since they are identical.

    These types of issues are better asked on the drupal forums or with the developer, as mentioned above.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice