In my Magento 1.9 platform . I have made my /var/www/html/magento/app/design/frontend/MyPackage/MyTheme/template/header.phml . But the Magento is not reading my header file . I just want to know from where localhost is taking the header file.
It is not reading my header.phtml file , it is reading the same file but from any another path. But I dont know from where it is taking my Header.phtml content
app\design\frontend\rwd\default\template\page\html\header.phtml
To override this create copy file from rwd theme and paste in your theme like this-
app\design\frontend\MyPackage\MyTheme\template\page\html\header.phtml
Related
I would like to know if it is possible to edit the JSON file of Scratch 3.0 project. I downloaded a project, changed the name into a .zip, unzipping it, and opening the JSON file that it left. I did not change any line of the JSON code. I compressed the project and changed its name into sb3; but when I upload it the Scratch 3.0 GUI I got this:
Oops! Something went wrong.
We are so sorry, but it looks like Scratch has crashed. This bug has been automatically reported to the Scratch Team. Please refresh your page to try again.
Make sure the folder structure of the new sb3 matches the original. If you zip the outer folder after extracting instead of the files inside, the folder structure won't be what Scratch expects and it will throw an error.
After basic knowledge of HTML/CSS/JS and Jquery, I got myself into WordPress. In order to save time and not build things from zero, I would use pre-made templates, and modify them according to the built of the desired future webpage. There might be a huge misconception in my head, but so far I havent found reply for this solution.
I have a locally running WordPress webpage with the help of WAMP. My webpage would consist 3 separate HTML files, lets say "index.html, contact.html, about.html". My issue is that after generating those pages in WordPress, I dont find any way to modify the HTML file of those sites. Nor locally in my computer, nor in the surface of WordPress. I found the "editor" function in WP, but apparently it lets me to edit only the CSS file.
My main goal is to generate the file with a template, than import it to BRACKETS / ATOM / etc and custom-shape the HTML and CSS on it. What am I missing ?
Thanks,
Wordpress only has templates it uses according to the type of content (page, blog post or any other custom post type you define in the theme) requested. All your actual data is stored in the mysql database. This data is retrieved and inserted into the template and then the generated file is sent to the client. So, you wont find any .html files in the wordpress core. My suggestion is to view the source in the browser, copy, paste and edit in your favourite editor.
I think you are using HTML files as a template which are not dynamically converted into wordpress theme. that's why you can't edit these files. You need to follow these steps.
1. your index file must be in index.php not index.html
2. style.css file with valid codes and most important thing is you need to know wordpress theme development. https://developer.wordpress.org/themes/basics/template-files/ This will help you
I am creating a site that allows the person to download the file. The way im doing it now is just uploading the files and folders so if the person wanted something they would go to that folder and download it.
If i wanted to style it like add text how would I do that. If it is done with a html file, i have to create a new .html file for every single file on the server.
If you're running apache, you should configure .htaccess files.
check also this : http://adamwhitcroft.com/apaxy/
Include HTML files with blade
Can I include a .html file in stead of .php with Laravel 4 Blade?
My code:
#include('emails.templates.file')
//file is email.html
file is automatically a .php file..
While #PHPWeblineindia's solution worked for you, it's not really the Laravel way.
However, you can do what you want by telling Laravel's view system to also consider .html files. By default it looks for .blade.php files, and then falls back to .php files. You can add .html to the searched extensions by adding the following somewhere in your bootstrapping code:
// tells the view finder to look for `.html` files and run
// them through the normal PHP `include` process
View::addExtension('html', 'php');
This will actually put HTML as the highest priority, so make sure you don't have two different views called the same thing with different extensions.
If its an external file then can you please try this:
<?php include app_path() . '/views/<path_to_layout/emails>/file.html'; ?>
Let me know if its still an issue.
I am very new to Bootstrap. I made a custom bootstrap using their site, and I've gotten a config.json file and a file with no extension called pax_global_header. What are these and what am I supposed to do with them?
Thanks!
The config.json file that is downloaded is nothing but a reminder of what your settings were when you downloaded. I would assume there will be some future functionality that would allow you to upload that file in to the website and reproduce the customized settings, but that feature doesn't currently exist, as far as I can tell.
If you are using bower, I would suggest using it to download Bootstrap for you. You can then use a LESS file to pull in the CSS features you want, and compile it using gulp/grunt in to your public asset directory. You can also use gulp/grunt to copy over the individual JS files you want in to a single file in that same asset directory.