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.
Related
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.
I have a question which I never figured out. If I bought template, lets say Avada or Enfold. How do I customize css? Should I change in css files how I want or there is better way? I saw many websites using avada or enfold in source code, but the website looks way different than original. Which way is best to customize template? Change headers,footer and etc..
The best way to customize your theme is Child Theme. You can do it on your own. Thanks to that you will be sure that you don't modify original files but only something like "copy" which overwrite your original files.
Avada Theme actually has it built-in. After purchase you will receive Avada_Full_Package with a original theme and his child.
One sentence from Avada's documentation: "Always use a child theme if you are modifying core code. "
More information about Avada Child Theme:
https://theme-fusion.com/documentation/avada/special-features/avada-child-theme/
More information about Child Themes and DIY in WordPress Codex: https://codex.wordpress.org/Child_Themes
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.
I'm working on my first WordPress project. It won't be a blog but a CMS to quickly edit content and pages on the site.
I've got the header and footer exactly how I want it by editing them in the Appearance -> Editor menu. Under this menu I see quite a few templates that I could use (screen shot http://i.stack.imgur.com/P7IyY.png), some of which I don't even think I'll need or know where they came from. However when I edit my pages and go to the Page Attributes section there is only an option for 1 template (screenshot http://i.stack.imgur.com/UblzD.png). If I select Default Template as my template for the page, only the header and footer seem to load.
I am pretty new to WordPress. Am I suppose to 'activate' these templates somewhere? I only plan to use a handful of them (index pages, contact pages with a sidebar). What am I missing?
Thank you!
You should take a look at the information posted in the WordPress Codex on template files and the like. This image is particularly helpful in getting an understanding for when certain files are used by the WordPress engine to render pages WordPress Template Files Diagram.
You'll find the rest of the information relating to that diagram on this page.
I experienced this issue when using a child theme. I added a new template file to the child theme but the "templates" dropdown did not show on the page options section of any of my pages. I checked and double-checked the formatting of the template file and that was not the issue.
It turns out that my styles.css document in the child theme was not formatted properly and was missing the "template" attribute that designates the parent theme being extended with the child theme. I update the child theme css document to reference the parent template and voila! The template dropdown showed as expected.
I cannot change the css theme of my Drupal View. This is a screenshots of the settings:
http://dl.dropbox.com/u/72686/viewTheme.png
I've tried all buttons, I cannot save the new theme (BlueMarine) in the preferences. It is stuck on Zen (which is my front-end theme).
thanks
That dropdown in the image you link to is only showing you what the appropriate template files are in each theme. If you want advanced theming you could use something like http://drupal.org/project/themekey, or customise an existing theme.
What you see there is not a setting to change the theme of the view, but a tool to see what template files views can find and will use. You can use it to figure out what to name your template files you want to use for overrides. Views let you select which theme you want to see what template files will be used. The label also explains what it is used for very well: Theming infomation. It also states that
This section lists all the possible templates...