• Welcome to the all-new Kolakube support, the official place to get help for Marketers Delight, XFtoWP, CryptoWP, and other WordPress products! Please login with your account details to access private support forums.

Implemented Docs Dropin - Change Wording

amalseed

Well-known member
Md
Messages
239
Reaction score
47
Hey guys, how would I change the wording (see attached) on the docs dropin, as I want to use it for Q&A's.
 

Attachments

  • qas.jpg
    qas.jpg
    123.2 KB · Views: 12
This suggestion has been implemented. Votes are no longer accepted.

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,702
Reaction score
1,901
Glad to see you using the Docs Dropin!

The easiest way to change the labels is to open up /dropins/docs/docs.php and change the labels in the taxonomies and post_type functions:

Screen Shot 2021-02-24 at 1.18.33 PM.png
 
Comment

amalseed

Well-known member
Md
Messages
239
Reaction score
47
Thanks mate... But it still hasn't changed the top line (breadcrumb), where do I change that?
 
Comment

amalseed

Well-known member
Md
Messages
239
Reaction score
47
Hey Alex, any thoughts on how I can get this sorted?
 
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,702
Reaction score
1,901
Yes, these are both related to a couple of changes I am going to release in a patch update you can make now if you'd like. This involves making simple edits to core MD files that will be in the next release already:

1) Edit /themes/marketers-delight/searchform.php and change line 12 to:

PHP:
$source = ucwords( get_post_type() );

2) Edit /themes/marketers-delight/templates/breadcrumbs.php find the hard coded "Docs" string and change it to what you'd like. In the next update this will automatically generate the post type name, so if you renamed it to "Questions" as in my last reply it will show here automatically.

Let me know how that works for you. :) The questions library you've setup looks AWESOME on your site!
 
Comment

amalseed

Well-known member
Md
Messages
239
Reaction score
47
Thanks Alex, the search box still says 'Search Docs'?

What do you think the overall site so far..?
 
Comment

amalseed

Well-known member
Md
Messages
239
Reaction score
47
Also, on this page https://fittco.com.au/martial-arts/, the email form below the boxes, is there a way I can just create this email form once, and then just apply to different areas of the site.

So if I was to make a text change, it would update all the email forms like this, and I don't have to go to every page.
 

Attachments

  • Capture.JPG
    Capture.JPG
    63.1 KB · Views: 3
Comment

Solari

Active member
Md
XFtoWP
Messages
57
Reaction score
12
I'm having this issue as well with "Search Docs" still showing up in the search box and in the breadcrumbs How can I fix this?

Alex, the changes you suggested here don't show up, I'm assuming because the code has morphed since then but the issue persists despite whatever fixes were implemented:

Yes, these are both related to a couple of changes I am going to release in a patch update you can make now if you'd like. This involves making simple edits to core MD files that will be in the next release already:

1) Edit /themes/marketers-delight/searchform.php and change line 12 to:

PHP:
$source = ucwords( get_post_type() );

2) Edit /themes/marketers-delight/templates/breadcrumbs.php find the hard coded "Docs" string and change it to what you'd like. In the next update this will automatically generate the post type name, so if you renamed it to "Questions" as in my last reply it will show here automatically.

Let me know how that works for you. The questions library you've setup looks AWESOME on your site!


Thanks!
Ray
 
Last edited:
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,702
Reaction score
1,901
Thanks for the suggestion @Solari! I see the usefulness of being able to change the wording, so I just implemented a simple Plural and Singular text label to the settings page under WP admin > Docs > Settings. To get this new functionality on your site, download Docs Drop-in 1.1.1 and upload this new version to the MD > Drop-ins manager on your site.

Screen Shot 2021-09-20 at 1.20.44 PM.png
 
Comment

Solari

Active member
Md
XFtoWP
Messages
57
Reaction score
12
WOOT! Thanks. Much better now -- only issue so far is "Docs" still shows up in the search bar on category pages. It doesn't on the home of Docs though, odd.

Ray
 
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,702
Reaction score
1,901
WOOT! Thanks. Much better now -- only issue so far is "Docs" still shows up in the search bar on category pages. It doesn't on the home of Docs though, odd.

Ray
This will require a change to a core MD file, which has been on my todo list as there are a few enhancements I've been wanting to make to the searchform anyhow. I can confirm the following change will be in the next MD5.3.x patch, so it will be safe for you to edit. You can open /wp-content/themes/marketers-delight/searchform.php and replace line 13-14:

PHP:
    elseif ( is_category() || is_tax() )
        $source = ucwords( get_post_type() );

With:

PHP:
    elseif ( is_category() || is_tax() ) {
        $post_type = get_post_type_object( get_post_type() );
        $source = $post_type->labels->name;
    }

This will pull the custom label you set in the Docs option as well. Thanks for working through this with me. :)
 
Comment

Solari

Active member
Md
XFtoWP
Messages
57
Reaction score
12
Yay, that did the trick!

There's just one niggle left:

Screen Shot 2021-09-20 at 11.43.51 PM.png

...should say "resources". No rush, I can wait until you push out the official update. : )

Thanks again -- the support here has been outstanding so far and I'm excited to see where this goes.

Onwards and upwards,
Ray
 
Comment

Alex

MD developer
Staff member
Md
XFtoWP
Messages
6,702
Reaction score
1,901
Looks like a nice use of the Docs drop-in! I'm excited that you are one of the first people to use both MD and XFtoWP, and are in an early position to benefit as I continue to blend both of those worlds together throughout the year. :)
 
Comment
Top