How to customize wordpress theme, include widgets? - php

I have a new site with a Wordpress theme (and I failed to find any information about the theme). The theme have all the features I need - forms, sliders, google map widget and others. But I see no tools to change them, except manually editing theme's php files (I've already done child theme). I can do it, but I'm doubt if this is the right way to create sites with Wordpress?
Please give me a hint, what should I do - edit php files, create new menus and content pages (which already are in theme) or maybe something else?
PS: sorry for possible stupid or duplicated question in advance.

I normaly edit the themes by changing the php files.
U can use a plugin for editing your themes. I use this one https://nl.wordpress.org/plugins/theme-editor/.

Related

Which template file does avada use for the blog post loop

Can someone please point me in the right direction regarding the location of the template file that contains the blogs posts loop I’m using the blog element.
I've tried multiple files but it does not work, Would ideally like to add a link after the meta information
Any help would be greatly appreciated.
Kind redards
Check index.php,archive.php,search.php files, find function method that used here to display posts, search for this method (or use IDE to find it fast) in theme directory files, in this method you will find how theme load template files. Avada is a complex theme with a lot of settings and different templates files for loop, that can load different templates dynamically depended on your current theme settings for design and layouts.

Where should the code for a WordPress hook function be located?

I am new to Wordpress/WooCommerce and PHP, although I have experience in other web platforms and languages.
I have read numerous articles about adding code to WooCommerce and where to place your code, and of course there are many different answers.
It seems that the most common answers are to place you code in the child themes functions file, while others say that you should create your own plug-in and place the code there.
I am leaning toward my own plug-in so that if the theme is updated or changed, the code wont be lost.
Can a hook (created by calling add_action()) and it's associated function be
created in my own plug-in?
Thanks,
Eric
Yes, you can override actions/filters of wordpress or any other plugin via your plugin.
Apart from that, if you use child theme (inheriting parent theme) you do not loose the customization you have made via child theme even when the parent theme is updated.
If the theme is changed all together, there is possibility that your customization may behave different as the actions/hooks can be used differently in themes.
Hope this helps.

Override function in wordpress child theme inc subfolder

I have read all the documentation about this but i cant handle it!
Im using third party wordpress theme, childtheme as well. I want to make some modifications in the child theme in one file which is based in inc/widgets folder, but i cant handle with the overriding. What information i must provide you, to improve my question and get help? Thanks!

Wordpress lost link after theme update. [Enfold Theme]

I'm by no means a coder or programmer but i have enough to understand my part and fix small issues or adjust look with basic CSS, and so friend of mine asked me for help and here i am two days later asking you)
There is a Website running Enfold theme which recently were updated and so was lost custom image link at right part of header made by someone-else.
I have restored link code from Cached version of website but have no real understanding how and where to add it back to theme templates. Would appreciate any help, solution, link, advice.
Cheers.
A wild guess, since I don't have Enfold theme (the best would be to ask on the official support), but in your div #header_main in the .inner-container, you had after the #advanced_menu_toggle this piece of code:
<img src="http://vcmt.ca/wp-content/themes/enfold/images/layout/canvas.jpg" alt="canvas" style="max-height:70px;">
Just open the .php file that has the header in it, and paste this code back in. Since the canvas.jpg was located in the /images folder of the theme, that is also gone, so my recommendation is to download the image from the cached version if you can and put it back in the image folder.
Also it would be better to make changes to child theme, so that you can update the functionality of the theme, without loosing any custom added modification, like this site had.
If you're planning on changing the CSS in any WordPress Theme, you want to make sure that you have a child theme installed. The child theme allows you to change/overwrite the CSS and Theme Functions on the theme without losing those changes everytime the theme updates.
You can download the Enfold Child Theme Here:
https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#why-child-theme
...and if you need to add HTML to the header, you can do so by duplicating the header file from the theme, adding a header file to the child theme, and making your changes in the child theme header file.
Hope this Helps!

how to find snippets when building a new WordPress theme?

I had gone through the current default theme (twentytwelve maybe) and looked through the code to find the core functions that make the theme work in files like index, page, single etc.
Is there a more efficient/cleaner way to find the snippets for each major theme file when starting to make a new theme? If not, how do you all do it? Do you do what I did and then reuse that template ?

Categories