Create Override for RokSprocket module in joomla 3
Posted 10 years 4 months ago
Hi to all!!!
I have a question related to the creation of an override for a roksprocket module. I have read the following instructions from the docs (as seen below)
1. Copy the directory structure leading to the file you wish to change in the /templates directory rather than /components. For example: /templates/(template directory)/roksprocket/layouts/strips/themes/default/ would be created to override files in the /components/com_roksprocket/layouts/strips/themes/default/ directory.
2. Copy the file you wish to override and paste it in the new directory. For example: index.php
3. Make adjustments to the new file.
4. Save your changes.
5. Test.
but i dont understand in which folder-directory to paste the selected-copied path and file (for example the list.css file)
Re: Create Override for RokSprocket module in joomla 3
Posted 10 years 4 months ago
Creating an override is really meant for use when you want to change the HTML structure for a particular layout. If you only want to change some styling then there is no need to do that - just put some custom CSS in your custom CSS file.
Or do you really want to change the HTML structure ?
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: Create Override for RokSprocket module in joomla 3
Posted 10 years 4 months ago
Dear Mark,
thank You for the quick reply.
For example i want to change the h2 class only in some roksprocket modules wihtout dhanging the whole h2 tag. I have tried to do that but i failed... and for that reason i was thinking maybe an override could be helpfull.
Re: Create Override for RokSprocket module in joomla 3
Posted 10 years 4 months ago
You should only have one H1 on a page (that is associated with page title field of the menu item in menu manager) - for that reason roksprocket title and all modules title are h2 (because you can have more than one of them). So, if you are really trying to force a change on H2 to an H1 html tag then you WILL need an override to do that (but I don't recommend for the reason I just gave). If on the otherhand all you wish to change is the styling of that h2 tag in a roksprocket then you can do that with custom CSS (and you can target it in such away as not to affect any other h2 too). So which is it that you want to do?
Could you please post a URL to your site (this can be done in the secure area tab if you prefer) so we can look for you. Without a link to page where the problem is on your site it is quite hard for us to provide the best solution due to so many variables. We try to provide file names and line numbers for code changes and if changes have already been made then our advice may be incorrect.
Please do a screengrab of your problem and annotate to make it clear.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.