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
Solved

Joomla main HTML page

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

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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 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