Modifying a template part don't do anything - wordpress

I try to modify a theme in WP and I just noticed that modifying a template part doesn't do anything. How is that possible? Tried on different browser to check if its cached and its not, how do I modify a theme part?
I'm using Academia Theme with LearnPress Plugin. I've made a Child theme and I'm trying to modify a file that is a theme part called content-course_list.php which is exactly the html that appears in the segment I want to modify. I just try to change a simple text that is "Read more". I found it, changed it and it doesn't update. I even put it in the child theme folder to make sure it gets it from there and nothing..
I don't use any cache plugins and the host is local (xampp).

It seems the theme has a "core" plugin (academia-core) as well, where its using some shortcode templates for parts of the website. I managed to find the text by its css class (found with chrome inspect in the page) while I searched in all the php files from theme and plugins. I hope this answer helps someone in the future.

Related

How to modify WP Job Manager job listings template?

Long story short - where is the template for the listing list items that are shown when the [jobs] shortcode is used?
I have a WP site with WP Job Manager. I am using the [jobs] shortcode to show a list of the jobs that is searchable. I need to modify the template of the listings to show lets say an excerpt of the job offer. I think the template showing there is the content-job_listing.php, but when I modify it nothing happens. So my problem is I can't seem to find the correct template.
I've searched the whole plugin code and can't seem to find anything remote to what is displayed on my page where the [jobs] shortcode is.
So what is happening here you think and where usually is the template I am looking for?
content-job_listing.php ist the corect template for it. What theme are you using? If you are using a WP Job Manager specific theme like Jobify then they probably have a custom template overriding the plugin's template. Then you'd have to look in their documentation to see which file that is.
Where are you editing the file? In a child theme or in the plugin's folder? If you are editing the file in the plugin's folder and you don't see changes then you probably have the file in a child theme as well. The child theme takes priority in that case.
Anyway you should make changes only in a child theme and not in the plugin files to make sure your changes are update-proof. It could also be that you are editing the file in a child theme which is not the active theme in your WP install?
If you haven't done yet check out the official WPJM documentation on this topic: https://wpjobmanager.com/document/template-overrides/

Wordpress theme core files not reflecting changes when edited as child theme

I concluded to use a theme called MagazineNP for a site project, created the child theme with necessary files and could edit safely and the result pops up.
For the past 4days I've had an issue with the theme core files, when I copy it to my child theme to get it edited and saved, It wont show up on site but It shows if I edited it via the parent theme...
Please help, I'm still a beginner.
I can recommend you a little list of tips first they are pretty basic but always help when nothing else does:
Clean your browser cache
If you have included some cache plugins flush the website cache
Review if the theme has any function to disallow changes in child-theme
Review if the theme has any optimization function enable and turn it off
One you have tried all this and nothing works enable the child theme again and do a simple edit put some echo code in the PHP file or an HTML tag and see if this works or don't

updated my theme on wordpress and lost custom mark ups

I'm really pissed off with myself right now.
There's this theme on wordpress, Reddle, which I used as template to create a blog.
I edited the header.php, footer.php, CSS etc.
Then I saw on wordpress interface there was a new update for Reddle and I automatically did it. Boom, lost all of my custom and the theme practically reseted.
Luckily I was with style.css opened, so I could save it. But my mark up is all gone. So this CSS became useless.
Is there a way I can get it back?
I was trying to search on my firefox/chrome history to find the "old" version of the blog, but I can't find. Is there a way I can find it in my computer? Like in a temporary internet files or something.
Or revive this old page using firefox history?
I know that in the place I work, the browsers save history, so is there a way to open a "saved page" instead of reloading?
The best of approach in wordpress to add your custom markup or theme, is to make it child of any of the theme. And now if you update your existing theme then there will be no effect on your child theme only parent theme will be updated and you will be using that as parent so practically there will be no effect on it.

Wordpress tiny mce editor does not show exact in the front end

I recently started developing websites on wordpress. I have this problem with tinymce editor. When i write post and format content it looks how I want in it. But when I publish post and check that it looks really crappy.Then I called the stylesheet of tinymce editor on everypage of website. I must say there is change but it still looks bad.
How can I get content in exact formatted way as I see in the tinyMCE?
Thanks,
kiran
On the frontend the styles from your theme will be taking precedence over the layout and sizing of content.
In the administration section it will be using a default TinyMCE editor css file. This allows for Wordpress to easily support a variety of themes without making many changes.
So that leaves you with the potential inconsistency, which you have identified here.
Either you work with the WYSIWYG editor giving you an approximation or you could add the relevant styles from your theme to the editors CSS. This can be done using add_editor_style() DOCs.
Use this WordPress plugin to solve your problem.
Specific CSS/JS for Posts and Pages

Modify wordpress site independently of theme

I am using a WordPress theme in a site. I want to edit the bottom of the page, replacing the WordPress default message and replace it with a custom message. The problem is, the change I want to make should be independent of the theme. I can change that editing footer.php using admin panel. Problem is, I do not want the changes to be reverted as soon as I change the theme. Can anyone suggest how to achieve that? Besides I want to remove the WordPress logo, too.
This isn't the way wordpress works I am afraid.
Anything that is tied to the database (posts, pages etc etc) will remain from theme to theme, but any changes you make to the theme files directly (editing default footer text) are tied to not just that theme, but those specific files. If you change the theme, or update the theme to a new version, your changes will be lost.
You are editing a file, and that file will no longer be in use when you switch theme.
You could use a plugin to create an overlay layer at the bottom of the page but this would be a fairly nasty solution and would be liable to appear differently when you change the theme.
Alternately, a plugin could be used to inject some javascript that modifies the footer but again, would depend on the theme as to what classes/IDs you'd be wanting to modify.
Basically this isn't something that's done!

Resources