Prestashop theme HTML code customization - html

I would like to ask if by buing a Prestashop theme it let me to add or modiffy its HTML source code?
I would like to substitute the "add to card" templatebutton and replace it with a URL to redirect the customer to another website. Would it be possible? So the customer isn't actually purchasing anithing at my site and its only redirecting customers to other sites.

You can modify any html that you want and can put any link anywhere you want if it doesn't contradict theme usage rules. But be aware that prestashop uses smarty templates engine and all html is inside smarty files, so it's better to be acquainted with the latter.

Related

Isn't the html of the form Django displays on the screen?

Django shows you forms when you do basic coding, right?
Where is the html of the automatically generated form in windows?
So instead of looking for a template folder, once the developer writes the url or views code, he finds the location of the skeleton-only html that Django shows.
In my opinion, it looks like it's built somewhere like an "anaconda/envs" contains a separate virtual environment, but I can't find it.
it's maybe path?
It's well documented:
https://docs.djangoproject.com/en/2.2/ref/forms/renderers/
It loads templates first from the built-in form templates directory in
django/forms/templates
unless you have 3rd party libraries included that override these templates.
However, a quick check in https://github.com/django/django/tree/master/django/forms/templates/django/forms/ shows that this directory is empty.
tl;dr
Django does not render any forms from scratch (unless it's the Admin which of course creates its whole UI automatically). It just enables you to quickly create a template that can render your form but you will still have to provide a basic template (aka HTML markup with dynamic parts) yourself.

How to use a external css file in my blog page in google blogger?

I have a blog site # google's blogger. Now I want to add my own styles in my pages. I have sufficient CSS knowledge to do this. But the problem is how do I save a css file, link it to my page and use in Google blogger it?
Note: I do not need to edit the blog template. I just need to add new styles to my page. E.G. : I need to create a code block by using codeBox class in my external style sheet file.
Sorry, but i don't think you actually can't, google Blogger uses their own GUI and its made for people who don't really know how to code (that's one of the purpose of blogs).
I recommend you to host your site either on GitHub or you could host your own site vía a custom host.

Joomla - Add html code to BACKEND template manager of protostar

I am trying to make protostar template BACKEND more user friendly. I want to add a left sidebar with options such as "Fonts", "Layout", "..." etc. I also would like to be able to style the backend options, fieldsets and fields.
Please note: This question is for the Joomla administrator backend and not for the front end site.
I know html and css well but I dont know where to override the backend template manager looks like some of the theme providers do. For example:
https://farm9.staticflickr.com/8609/16244287038_cdff31be92_b.jpg
Thanks
If you look in the administrator/templates/isis folder you will find the default backend template. here you can edit the index.php file to suite your needs. I would make a copy of isis and rename it to something else and then activate it via the template manager in the backend. This way, when the site is updated your template wont be overwritten.

Integrating a Back button

I have this theme http://themes.two2twelve.com/site/fluidapp/light/ installed on my website running wordpress. I converted the template to a wordpress theme by following the steps here: http://thethemefoundry.com/blog/html-wordpress/ and its all working fine.
However, I have now been given the crazy task to integrate a "Back button" function in it.
What they want is to have some sort of Back button functionality (or the browser one) so when they open Team and they press Back - they go back to Home. The template is basically one-paged, you can see so in the source code.
One way I can see this happening is if I make every page a different .php file, upload them to my theme folder and then just hyperlink them. like www.yoursite.com/team.php
Another possible way (I think) would be to create a page.php template file and then post the pages using wordpress. Question: How do I tell wordpress to use page.php as the page template file?
Can you think of another way to integrate this functionality? Thanks a lot in advance.
If it always is going to return the user to the startpage you could just use the home_url(); function.
Back
If you got more advance structure and you want the button to just redirect the user back one page, you should use javascript.
Back
page.php is the default template for wordpress pages. So if no other is selected in admin, page.php will be used.
If you're using javascript to load the new content, you could use javascript pushState()and popState() to log the stuff to new url's, and it gets added to the browser history. Here's an example.

Adding different CSS files to different pages in Orchard CMS?

Let's say we have two pages in Orchard CMS. The homepage and the About US page. I want to use a RoyalSlider on the homepage which has its own CSS file. How do I include it only on the homepage and not on the about us page?
In Orchard CMS I am using Contoso as the theme and I tried including the royalslider.css file on the Layout.cshtml using Style.Include but this will include the CSS file over all the pages in the website which is not a good practice.
You should use URL Alternates feature for that. It's described here, in the section "URL and Widget Alternates".
After enabling the feature, copy the Layout.cshtml you found in your theme and rename it to Layout-url-homepage.cshtml. This one will only be used for rendering the homepage, so just add your Style.Include calls there and you're set.
You can try 2 things.
Use the Classy feature in Vandaley Industries module (http://gallery.orchardproject.net/List/Modules/Orchard.Module.Vandelay.Industries). Then you can add a script to any content type.
Create an alternate at the corresponding URL.
They are many other ways, as Orchard is SOOOO extensible. Try these two first. :)