Jump to content

How to findout a specific text or image located in which css file?!


DavoodHawaee

Recommended Posts

Hello everybody

I have a problem with a little text that a module added to my footage, but it's not on my footage css files, I read topics and checked the blockmyaccount and blockmyfootage files too but I didn't find.

My general question is "Where is a specific text or image or any elements located on css files"?!

I'm using FireBug but it doesn't help, it shows just the main css, like global.css or global_rtl.css.

Link to comment
Share on other sites

It should be a translation of a module or a link.

 

LINKS: tab modules -> modules & services -> search for CMS block -> configure OR it could be also a link of the useful lnks, so you can translate at tab "Preferences -> SEO & URL's" - > choose the link and use "edit" for to translate.

 

MODULES: Tab localization -> translations -> choose translation for a module and your theme in use.

 

Text in general you will find on the translations and not in the files.

 

Images you can locate with Firebug.

 

Script code you will find with notepad++ and the option "search on server"

Link to comment
Share on other sites

Thanks for your replies but my question is generally and about a page! I own a website, I'm seeing something, some special text that isn't in my translation because my module doesn't show it on my translations and I wanna change it, as an owner have to know where is this code located! I searched a lot and I used programs like FIREBUG, for example, firebug shows me the codes, right!? But I don't know where can I change this code?! You know? It's a problem when I can't change what I own!

Anyway, I removed that module but my question still is here! "Where is this element's css file?!"

Link to comment
Share on other sites

Next content is NOT part of CSS. To investigate, usually it makes sence to to use CCC for CSS unter performance settings. With this option turned OFF your browser loads all CSS files separately. Then you can use the browser right mouse click to investigate objects on the screen and locate the name of the CSS and line number involved for formatting. All this applies only to formatting elements but not to its text content.

 

If a module behaves the way it shoud, text elements are translatable by Backoffice => Localization => Translation => Modules.

 

Images are different: The might come from CSS (expecially for small icon images) or from the module settings. There are not guaranteed always working approaches to figure out where images come from. Sometimes you even might need to investigate the modules source code.

Edited by Scully (see edit history)
Link to comment
Share on other sites

It's right that "Sometimes you even might need to investigate the modules source code", but sometimes a little text isn't in theme's csses and in module's css it doesn't show the code!! So how can I remove that little text, I don need?!

In another side, I have a bigger problem that I have 2 global css files on my public_html/themes/default-bootstrap/css.

One of them is global.css and the other global_rtl.css, what is the difference between these two files?
Even I delete the global.css nothing will change on my website but when I delete the global_rtl.css file It became confused with text place and other things!!
It's my problem right now that don't know in which file I must change my background color!! because if I delete which of these files my background doesn't change!
Link to comment
Share on other sites

You should always use browser developer toolbar to investigate where a CSS rule comes from. All other approches may only lead to trial & error. At the moment you are going the trial & error way without understanding how CSS works.

 

Refering to files mentionned:

I don't know global_rtl.css. It is not part of PS 1.6.1.XX. It can be a custom theme CSS which we don't know or it might belong to a PS 1.7. installation.

Link to comment
Share on other sites

>>>>My general question is "Where is a specific text or image or any elements located on css files"?!

I search by the next scheme:

 

if you do not know Linux

1) download all prestashop files locally 

2) search by keyword at totalcommander

 

If you know Linux & have access to SSH 

1) via Linux MC software 

2) search by keyword at MC

Link to comment
Share on other sites

Also with notepad++ you will find "words" in files on server.... See my previous post #4 (script code and words in this have the same meaning) ;)

 

https://www.ghacks.net/2016/09/16/use-notepad-to-find-text-in-all-files-of-a-folder/ and you do not need to download the files before, you can search also on Server. It takes a while, but it will find it.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...