Solved

Joomla main HTML page

Posted on 2016-10-12
4
68 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
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
Prasadh Baapaat earned 500 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 9

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 9

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
test if query has no results 2 19
Bad <form> statement? 9 26
remove background quote mark from widget 6 24
How to count in a table in php 22 18
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now