Installing Demo Explanation

Posted in: Newspaper
Post count: 30

Hi,

Can I be connected to a Developer? I need to know the process of how is Install Demo working? Because I really need the feature of Switch template example: Black to Default. when I press a button at Home.

Let me know the possibilities. I’m also a developer, but I’m having a hard time understanding the architecture.

Thanks!

Post count: 1291

Hi,

The demos can be installed with content or without content (just the design settings).
Not sure what you mean with “feature of Switch template example: Black to Default. when I press a button at Home.” Do you mean you want to use a different design for different pages? Please provide more details.

Thank you!

Post count: 30

Hi Emil,

I’m referring to Theme Switch button on the fly. Wherein if I press a button, I’ll be able to switch theme example. What is installed is black, then I want to switch to Default or other demo theme.

What I’m thinking is to understand how is Install button at demo works? So I’ll be able to know what files are needed to be replaced or remove on click.

Thanks

Post count: 22421

Hello,
The demo content is pulled from our server so when you press the button your current demo will be uninstalled and the new one installed. If you install a demo with content, the demo content will also be removed. You will not be able to see the files as there are none created. All of the demo files are already included in the theme package and just the call for different files is made.
Thank you!

Post count: 30

Hi @Bogdan,

I only need to know what are the theme files being loaded when I install Black or Default demo theme? with no content. Just the files(css? shortcodes?) I saw only these file “/demos/black/demo_style.css”

Demo Style

I tried removing it via chrome developer tools debugger and it turned out fine? I believe i already have the default when i remove the demo_style from the page. But still these are my challenges:

1.) Aside from demo_style.css are there any file I should modify/remove/add? I’m already fine with header and footer(but it would be better if I’ll know how to switch them too)
2.) How can I save the setting?(I believe I can set cookies but is there a function/method I can invoke?) just to load the Default Newspaper style

On press of a button, it will switch Black Newspaper Demo style to Default Newspaper Style and vice-versa that’s what I only want to achieve. And maybe some of the users might benefit from these. This will give the readers an option to choose for their theme preference.

Thanks a lot!

  • This reply was modified 9 years by rjdtramirez. Reason: Update
Post count: 22421

Hello,

The demo-style.css is the only file getting loaded. The rest are loaded through the theme pane and medi library. A demo is mostly css as it does not change the theme functionality, just it;s style.
You can load a demo only from the theme demo section: https://forum.tagdiv.com/installing-demos/ You cannot load it any other way. If you want to save the theme settings you can export them like so: https://forum.tagdiv.com/import-export-theme-settings/

We did not test this switch you mention so there is no simple solution I can provide. Sorry. In order to create a custom code that can do that you will have to inspect this file to see how a demo is being loaded:
http://screencast.com/t/DdRU1c6pmEm

Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.