Rien Posted October 12, 2015 Share Posted October 12, 2015 Hi. I've managed to change the indexpage to show random items instead of the latest additions, (thanks to this forum), but now I still have the "New Products For October" line at the top. I want to remove that completely, or replace it with another text, but I can't find it anywhere. Where does that thing live? Thanks in advance. Link to comment Share on other sites More sharing options...
Dan Cole Posted October 12, 2015 Share Posted October 12, 2015 @@Rien Try commenting out this line in index.php....I think it's what you want. In my version it was on line 93. <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
MrPhil Posted October 12, 2015 Share Posted October 12, 2015 All text in a particular language should be found in one of the <language>/.../<filename>.php definition files. Familiarize yourself with a global text search tool such as "grep" (Linux systems) or "findstr" (Windows boxes). You can search either on the site itself, or on your PC's backup copy (unzipped). This will tell you the "macro" name (e.g., NEW_PRODUCTS_FOR) and the language file it is defined in. You can then search for (e.g.) NEW_PRODUCTS_FOR and see what file(s) are invoking it. You can then either just comment out where it's used, if it's a stray heading, or comment out a call to (e.g.) new_products.php that you no longer want there. If the text define string is no longer used, you can leave it alone, or comment it out (leaving it available for the future). Don't erase it, as you're sure to want it again at some point. Link to comment Share on other sites More sharing options...
Rien Posted October 13, 2015 Author Share Posted October 13, 2015 You put me on the right track, thanks. Replaced the string with a space for now, will think of something a little more original later ;-) Link to comment Share on other sites More sharing options...
Rien Posted October 13, 2015 Author Share Posted October 13, 2015 @@Rien Try commenting out this line in index.php.... Hm, that doesn't seem to make any difference here. But the problem is solved, I found the string. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.