Are you wanting amend your PHP files to achieve this? I only ask, as the code there looks to be JavaScript, and you may be asking the question in the wrong forum.
Assuming that youâre refering to the date Iâve highlighted in the image below, then that has a class or âedgtf-portfolio-dateâ on it which you could target.
Iâm very puzzled why youâd use JavaScript to remove content that has been generated by Wordpress (?). It seems to make more sense to find out where the dates is coming from - a template perhaps - and remove, or comment out, the code thatâs producing it.
Could you please post the code where you replaced posts with portfolio?
If you are using a purchased theme and want to alter the php code, you should probably contact the theme developer for help also.
But the easiest solution would probably be what @chrisofarabia suggested - just comment out the php code that is producing the date (or maybe use css display:none on the targeted element). However, donât do that in the original theme - you really should make a child theme for that. If you adjust the code in a theme, any subsequent updates will overwrite your changes and you will have to start all over again.
I was just poking round in a vanilla install of WP and found this setting with the widgets - would that help? It looks like you can untick it and the dates disappear from blog posts.
Edit: Having tried that out, that looks to edit a date in a âRecent Postsâ list, rather than the blog post itself. It might be worth noting that I know very little about WP itself, so am just poking around to see what might be relevant.