Theme layout is different after copy - wordpress

I new to wordpress, dealing with customization of current theme.
I cannot create a child theme of this theme, as this one is already a child theme of another theme.
What I did is that I copied theme folder from wp-content/themes, changed name of this folder and changed Theme name in style.css -> expecting that this theme will work exactly the same as the previous one.
Although there are some major differences when I activate the new one:
Original:
Copied theme:
It seems to me like some part of customization of the original theme is missing in the database.
So my question is: Apart from theme folder, what else (and how) do I have to change for my copied theme to be exactly the same as the previous one?
Thanks for any help in adavance.

good time,
To solve this you need to paste the custom CSS code used on the new website.
If your previous website is online, just do so by pressing the Q (Inspect Element) key in the Firefox browser to access the source and copy the CSS inline codes.

Related

Css modified after wordpress update

I have updated my WordPress version. The style of the css is modified. I have a backup version. Should I take the oldest file for plugins and theme in order to resolve that issue?
you should have a child theme and put your custom css in the css-file from your child-theme.
Your child-theme would not touch from any update and your custom code is save
Taken from the WordPress Codex:
WARNING: The upgrade process will affect all files and folders included in the main WordPress installation. This includes all the core files used to run WordPress. If you have made any modifications to those files, your changes will be lost.
When you do any theme changes you should always put your changes in either a custom theme you have made yourself (so only you update it), or if you're using someone else's theme, create a child theme.
More information about child themes can be found here:
A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme.
As for plugins, they don't work in the same way so you'll need to make sure that any plugins you change are your own otherwise you'll lose the changes when you update them.
Lastly, you can also use the WordPress Customiser (Appearance > Customize in the dashboard) if you don't want a child theme but want to insert custom CSS. That allows you to edit CSS safely within the dashboard and keep your changes safe even when you update things.

Wordpress Customizr Theme Modern Style - Child Theme and overwriting templates

I searched for this over an hour and just don't find how to do this. Maybe the Customizr themes name is not the best choice for easy searching. :)
Anyway, as far as I read here I have to create a child theme and should be able to override any file in the theme I would like to by building up the same folder structure the original file has.
According to templates/parts/loop.php the following two template files should be used by the theme:
templates/parts/content/post-lists/post_list_alternate.php
templates/parts/content/post-lists/post_list_plain.php
So I copied these two files to my child theme keeping the folder structure, inserted a large-sized span to test but nothing changes when viewing the website.
Can anyone give me a hint what I'm missing? Most information I find in the theme documentation relates to classical style.
Thanks in advance
Steffen
I also asked this question in the Wordpress theme support forum and got an answer.
The template files each belong to a post list layout which can be selected in the theme customizer:
Appearance -> Customize -> Main Content -> Post lists: blog, archives, .. > POST LIST DESIGN > Select a layout
Changing this to the appropriate layout uses the files in the child theme as expected.
Details on which file is used by which layout can be found in the code of the theme.

Theme child on wordpress

I'm new on wordpress and I have readed about childs themes.
My question is, Is that neccessary that I create my self child theme or can I use other theme child created ? that's to say, if I use a child theme created for other person, that theme will not change that I do it?
The way a child theme works is that it overrides the default settings of your chosen theme. So you only have to allow for the parts of the theme that you want to make your own.
As long as a child theme created for someone else is based on YOUR main theme, then you could use someone else's child theme.
For example, if someone has a child theme that works for Wordpress 2017, you can upload and modify that for your own use, for example to change the css or create your own header and footer files (usually named header.php and footer.php). These are the things I do most often.
If you don't already have a child theme for your chosen theme, though, it is best that you create one yourself. It is quite straightforward, all you have to do as a minimum is create a child theme folder with a style.css in the correct format and a functions.php file in the same folder using these instructions https://codex.wordpress.org/Child_Themes
If all you want to do is play with color and fonts, you might find it easiest to just use the Wordpress Theme Customizer. These changes will be maintained during upgrades in a custom.css file (or equivalent) so you shouldn't need a child theme.
Hope this helps

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.

Wordpress Thematic child theme: editing template files

I built a Wordpress child theme based on Thematic framework and edited some template files. When I upgraded to a new version of Thematic all changes to my template files were lost.
I guess it makes sense but that makes me a little disappointed in the child theme concept...
So if I understand correctly, there's no way to edit template files of Thematic (or any other WP theme framework?) and then upgrade easily and keep the changes? The way to modify a Thematic child theme is with styles and hooks, but changing template files is a no-no because all changes will be lost with upgrade?
By child theme, i'm assuming you just made some changes to that Thematic theme but for a specific blog, in which case, yes, your changes would of been over written on upgrade.
To avoid this, create a new theme folder on your sever and copy all the files over to that new theme. Once the files are copied, go into your stylesheet, and modify the comments in the header of the file. This is where you can rename your theme to say something like Thematic Theme Customized or you can rename it to whatever you want.
Once these two steps are complete, you should be good to make any modifications without fear of your data being erased on site upgrade.
Please note, that by going this route, WordPress doesn't know there's a new theme that it needs to upgrade, so if the Thematic theme has a system upgrade it needs to update, you'll need to copy that update over to your newly modified theme.
Hope this helps
Make sure you copy the childtheme out the thematic theme dir into the theme dir and edit the childtheme functions.php. Otherwise if you upgrade the theme changes will be lost.

Resources