Joomla - How to apply template changes to pages using the changed template? - php

An application that I need to work on is running on Joomla! 2.5.8. For the life of me, I cannot find a way to edit the main file (index.php) of a template and see those changes on the page using the template.
How do I do this?

You can do this in the Joomla backend.
Go to Extensions >> Template Manager
Click on the Templates tab
Click on TEMPLATE_NAME Details and Files
Then on the left hand side, click on Edit main page template.
This will open a page allowing you to edit the index.php file for you template. Do note though that this is to edit your template and not extensions.
Hope this helps

Related

Page Speed google is showing Style.css in render blocking

Can any one know how to remove style.css from render blocking in word press.
Thanks
Let me give brief about the render blocking files.
See WordPress site has a theme and plugins that add JavaScript and CSS files to the front-end of your website which can increase your site’s page load time.
When browser loads page it load those scripts and CSS before loading rest of the HTML on the page. These scripts and stylesheets are called as render-blocking JavaScript/CSS.
Solution:
You can install and activate the Autoptimize plugin. You can refer
it's installation here. This plugin gives option to optimize
JS/CSS code. After activation, you need to visit the Settings »
Autoptimize page to configure the plugin settings.
Then test your website using PageSpeed tool. If there are still render
blocking scripts, then visit plugin’s settings page again and click on
‘Show Advanced Settings’, here you allow plugin to include inline JS
and remove scripts that are excluded by default. And then retest your
site using PageSpeed.

Cannot find WordPress pages on NotePad++

I am implementing multiple pages on a website. I am using FTP with Notepad++ to edit pages and I am using WordPress. I have multiple pages show on the Wordpress/Version Press,which I can edit through WordPress. But I cannot find those pages on NotePad++. I can only find multiple index.php, index.html pages. Those pages work fine, but I cannot find other pages like an about.php, login.php page etc.
Do I need to manually add those pages to NotePad++ or do I need to change the setting between WordPress and NotePad++?
WordPress (like most CMSs) stores page content in the mySQL database, not as PHP/HTML/etc. Therefore you cannot modify page content via FTP. If you need to code things that the CMS will not allow, you have two options:
1- Install a snippet or code editor plugin. These save your script in a Basecode format so that WordPress doesn't try to mess with it. This is the recommended method for minor issues such as injecting a few lines of PHP into a page.
2- Create a custom Plugin. These can be modified via FTP because they are saved as files in your plugins folder, not in your database. These are best if you have a specific application you need to write for your site.
3- Create a Child Theme. This is similar to custom plugins, but it is better if you need to change theme functionality on a global scope. Recommended making major alterations to your theme's header/footer/etc.

Issues regarding custom theme, plugins not working in Magento

I am using magento custom theme. When I open my product page, while loading the page the default zoom function buttons are visible for a moment. When page load completely the buttons are disappear.
Let us look the images for more info:
Before (while loading)
After page load
Why this happened so? I am installed a new custom theme. This theme not provide any image zoom functionality. I think the zoom buttons are load from frontend\base\default\template\catalog\product\view\media.phtml. Why my site load this page, since I use a custom theme the site should use the theme's media.phtml file. How can I solve this issue?
And when I try to install some product zoom plugins, these are not working in my theme. The plugin files are saved in my default theme directory. And I manually copy the plugin files from default to custom theme directory, but no luck. Please refer the LINK for more details. Is there any way to rectify this?
Please help me ...I am using magento 1.9.0.1
First of all you need to check which package you are using for you theme, you can check if media.phtml is being called from rwd folder.
i.e. /app/design/frontend/rwd/default/template/catalog/product/view
Or you can enable path hints and locate the phtml files, and accordingly that you can put the design files of custom module there.
To turn on template path hints in Magento:
log into the magento back-end admin.
Go to System -> Configuration in the main menu.
Go to Developer on the bottom left under ADVANCED.
Switch to the store view on the top left to your current website or store
view.
or check the below link.
https://support.sweettoothrewards.com/entries/21255937-How-do-I-turn-on-template-path-hints-

how to add joomla site header in my custom php file without using ready made plugin or module?

I have been develope one site in joomla framework. Now my trouble is that client want one custom page in this site. so, please guide me how to i setup theme interface in this custom page?
Although this is not my favorite solution, instead of including Joomla in your script, you can put your script inside an article with an extension that can read your code, like DirectPHP and others.
You can make something like error.php which is really a mini application that renders a single page. You can see in the core how elements of the emplae are used and you can evn pull in modules and so on.

Understanding Joomla Structure

I am new to Joomla and can't help but notice the difficulty in understanding page structure.
Right now the website has a page for example: domain.com/index.php/aboutustab
So it seems index.php is required to render all pages and the "aboutustab" seems to be an article but i can't find where the content in the aboutustab is being pulled from and how?
I looked into Article manager but the content is not there.
By content i mean all the text that is suppose to show up and etc.
You should start by reading everything in the beginners section of the Joomla docs located here.
What you're seeing is a menu option, not an article. Read the docs, they really do help.
In Joomla 1.6/7/2.5 the index.php is shown if you haven't enabled Joomla! "Search Engine Friendly URLs" option in the SEO Settings panel in the Site tab of the Global Preferences.
In conjunction with using the "Use URL rewriting" (which requires you to enable either the Joomla! .htaccess file on Apache servers or the web.config file on IIS7 servers) these settings remove the index.php from the browsers location bar. Joomla! still passes everything through the index.php but it's not visible to the end user.
The content you're seeing would typically be in an Article but it may not have the same title as that displayed on the website - the title can be over-ridden in several places. The other possibility is that it's in a Custom HTML module, which is essentially a mini article that you can place in module positions.
As for page structures, they are controlled by the active template (a template is a set of php, css, js and image files in a directory, usually of the same name as the template). A template typically provide a core content location (called the component area) and a variety of module positions. Most Joomla! templates support a variety of standard module positions including top, header, footer, copyright, user1...user5 etc.
The page is assembled by pulling together all of these elements (articles, modules, etc) and inserting them into the template.
HTH
Craig

Categories