Solved

Joomla main HTML page

Posted on 2016-10-12
4
160 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…

617 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