The way you did change the view for your article layout is half the way the appropriate. That's because you did a good job finding and editing the correct php file (the template file for the article view), but you didn't follow the recommended practice for modifying core files.
A. The proper way: Template Overrides
A. The proper way: Template Overrides
For cases like these, Joomla provides a very flexible way to override the core layouts/view/templates. The practice is called "Template Overrides". It involves duplicating the template file you want to modify, and place it at the corresponding "view" folder, of the "component" folder at the "html" folder inside your template.
To translate this to a directory path:
/templates/"YourTemplate"/html/com_component/viewname/templatefile.php
Specifically for your article view override, this should be:
/templates/"YourTemplate"/html/com_content/article/default.php
Note that the html, com_component, viewname folders might not exist and you will have to create them.
That's regarding the proper way to override a layout.
B. Blog Category Layout
B. Blog Category Layout
Now regarding the Blog Category layout modifications you want to do, you should think it similarly like the article view you changed. I mean why you went that far away from your first implementation, as the category view is located just a single directory next to the article one in com_content.
So for the Category Blog Layout, you need to edit the /com_content/views/category/tmpl/blog_item.php
. In there you will find the call thethat renders the print-email icons.
Remember toRemember
...to follow the Templates OverridesTemplates Overrides technique I described above, which should lead you to create another one folder named category inside the templates/youtemplate/html/com_content/ and
and place there your modified template files of the category view.
Notes:
- Depending on your template, it's possible that such overrides might already exist inside there.
- It's possible that you might only have to adjust your css, in order to bring the print/email icons next to the title, and not have to modify the html.
References: More info about template/layout overrides at Joomla Documentation:
- How to override the output from the Joomla! core
- Understanding Output Overrides
- Layout Overrides in Joomla
Hope this helps.