Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Joomla main HTML page

Posted on 2016-10-12
4
Medium Priority
?
172 Views
Last Modified: 2016-10-24
All,

I need help figuring out how I can edit some of the elements found on the Joomla Main html page.

I right click and choosed "Inspect element" in Chrome browser and it showed me a div tag that was responsible for a section on the home page.

I tried searching for this div tag in Joomla and I cannot locate it. It looks like it's a bunch of php files.

Can someone tell me how I can figure out which php tag is responsible for certain html tags?

Or how I can edit the html on the main page?
0
Comment
Question by:teknovation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
Prasadh Baapaat earned 2000 total points
ID: 41841722
HI,
the Joomla main html page code comes from the file "index.php" which resides in the "templates/mytemplate" folder...

it is in the index.php file in the template folder which is set as current template.

For easy understanding The below image will show the location of index.php file.

Index file location
Thanks,
Prasadh
0
 

Author Comment

by:teknovation
ID: 41841888
Thank you Prasadh, can you explain how come when I open the index.php file, it's almost blank but when I go to the home page of the joomla site, there's pages of html code? I am trying to edit that page with the html stuff.
0
 
LVL 10

Expert Comment

by:Prasadh Baapaat
ID: 41841921
Hi,
well it all depends on how the theme is built... there are many ways to do it... in PHP you can also have "include" files... where there is just a reference to the file path in index.php & the actual code resides in some another file (which can be anywhere in any folder).

so as of now I cannot really help you unless I have some more information/access or a URL to look at.

Also are you using a paid theme? because many of the modern and advanced themes have a very complex structure.

thanks,
Prasadh
0
 
LVL 10

Expert Comment

by:Prasadh Baapaat
ID: 41841926
The approach I take for solving or modifying problems in Joomla is to have a LOCAL installation... that way I can search all files and identify where the code is & what comes from where.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question