Build Your Own Business Website header image

Welcome to our Members Only Forum

You are welcome to view the content on our Forum, just scroll down to view this forum post.
If you like what you find and want to be able to post a question, please check out our subscription options.
Please feel free to search the forum using either the Google Site Search above or the forum search below.

Avatar
Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Thesis Hooks - Videos
Avatar
darkstreak
Jedi
Community Member

Members
Forum Posts: 63
Member Since:
April 28, 2018
sp_UserOfflineSmall Offline
1
June 11, 2018 - 7:24 am
sp_Permalink sp_Print

Hi Rick,

 

Can you point me to the specific videos where you explain using hooks and adding custom php code to custom_functions?

Avatar
darkstreak
Jedi
Community Member

Members
Forum Posts: 63
Member Since:
April 28, 2018
sp_UserOfflineSmall Offline
2
June 11, 2018 - 7:30 am
sp_Permalink sp_Print

Found it! no worries!

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
3
June 11, 2018 - 7:59 am
sp_Permalink sp_Print

Hopefully you found this seminar - https://www.byobwebsite.com/seminars/thesis-theme-2-0-seminars/introduction-to-customizing-thesis-2-1-using-php/

That's the only one that is applicable to your version of Thesis.

However - it's almost always the case that if you are using hooks for something in Thesis 2 you are doing it wrong.  Not always, mind you.  But I can say that I don't have a single client site out there that uses custom.php and hooks.

So, what is it that you believe that you need a hook for?

Avatar
darkstreak
Jedi
Community Member

Members
Forum Posts: 63
Member Since:
April 28, 2018
sp_UserOfflineSmall Offline
4
June 11, 2018 - 11:39 pm
sp_Permalink sp_Print sp_EditHistory

I've become a huge fan of your boxes that I don't particularly need things outside of this. For example, I am beginning to see the unlimited potential of Extended meta fields box. I can now pass shortcodes of galleries and have them display anywhere in the template! And this is just one of the many boxes.

So my intent behind these hooks were not really to carry out any specific function, but just wanted to be at ease with basic foundations of thesis. So one day if things change/evolve in thesis, I would like to be grounded on the fundamentals rather than being too comfortable with just the top level frameworks. So you're saying that thesis is moving in a direction where Hooks and using custom functions could one day be obsolete?

Avatar
Keith W Jones
Somerset, UK
Member
Members

Community Member
Forum Posts: 1428
Member Since:
June 22, 2013
sp_UserOfflineSmall Offline
5
June 12, 2018 - 1:28 pm
sp_Permalink sp_Print

I've been looking at hooks and filters and been wondering if there is a point now.

Ref filters one lesson here to change text Next post  and Previous post can now be changed in the skin editor.

Keith 

Keith W Jones
Make sure you backup before upgrading and making changes.
Best results when one question per thread, link to site, version of WP, Thesis and skin.
http://www.kwjassociates.co.uk - Wordpress 5.1.1 – Thesis 2.8.5 - Focus

 

*** Biggest cause of problems is now the cache, whether it is a plugin, the browser or your host's server. ***
*** Do not edit Skin and Editor CSS - make changes using Custom CSS. ***
*** Do not edit core files - make changes using custom.php or master.php. ***
Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
6
June 12, 2018 - 2:26 pm
sp_Permalink sp_Print

What I'm really saying is that for most people Thesis has already arrived at the place where using any sort of hand written PHP is obsolete.

Hooks and filters are used extensively in WordPress, so if you are a WordPress developer then knowing how to use them is critical.  In some cases like Genesis and WooCommerce, hooks and filters are the preferred method for customizing the output.  They are designed specifically so you can use them to change labels and rearrange content.

Thesis retains the hook/filter concept but customizing it generally means using the Skin Editor to move stuff around, or add and subtract it.

So for most themes if you wanted a second menu somewhere you would need to use a hook in that theme to attach it.  In Thesis you drag a menu box into place.

If you really want to customize a site using PHP and Thesis you should try your hand at creating a box.  It is safer that a code snippet (in that it can be deactivated) and it is better practice because it segregates that functionality into a single unit.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 228

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Keith W Jones: 1428

Brian Tozer: 1004

Carolin: 982

Heidi Hafner: 508

John Cunningham: 423

Reece Morrel: 353

Newest Members:

emma62755

sharonmarks

emma80233

Tijs de Jong

Daniel Frey

mutek

Forum Stats:

Groups: 8

Forums: 46

Topics: 6995

Posts: 34796

 

Member Stats:

Guest Posters: 6

Members: 6761

Moderators: 2

Admins: 2

Administrators: Rick Anderson, Rick Anderson

Moderators: Pierre Cote, Laura Nugent