updated my theme on wordpress and lost custom mark ups - wordpress

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.

Related

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

Style.css not updating when changed in theme editor

New to wordpress theme editing and php.
I am working on a website and i have run into an issue, within the style.css there is a #meadia breakpoint added that screws up the view for mobile users and adds a margin.
This is the code:
.wpb_row.full-width-content{margin-left:-10px!important;}
Now what i do is change this in the child theme, theme editor to:
.wpb_row.full-width-content{margin-left:-10px!important;}
And it says that this is saved!
However, when I return to the page and inspect the mobile view, it still says
.wpb_row.full-width-content{margin-left:-10px!important;}
Am I completely missing something here, or making a noobish error here. Hope anyone can help. Good day to you!

Modifying a template part don't do anything

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.

Magento child theme overriden by custom theme on categories pages

I'm having trouble adapting a Magento Theme.
I'm using a child theme of a custom theme in order to be able to update this theme in the future. It has worked fine in home page and product pages linked from this page, but when I enter a category page and from there go to a product page, my child theme is not applied anymore (custom theme instead).
I tried a lot of things but oddly, no changes were visible. I even commented a css I was importing from the custom css style field in the admin, and it was still being applied. I flushed cache of course, but no results.
I must say that originally I had a folder with css inside the main theme default folder (magma/default/child_theme/css/style.css) and it was linked in the field as mentioned above. Then I made a copy of it and put it in magma/child_theme/css/style.css, which is the way a child theme must be, as I understand. I changed a color in this new css and no changes made. The first css is still being called. I don't know from where, since I commented the import, as I said.
Any idea where to look into?
Thanks!
You mentioned it's specifically categories and their products. I would check Catalog > Manage Categories then, specifically the Custom Design tab on whatever category/categories are giving you trouble.

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