Solved

Joomla main HTML page

Posted on 2016-10-12
4
47 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

8 Experts available now in Live!

Get 1:1 Help Now