How to make changes to header-callout?

I want to make a change to the header-callout and change some of its code to suit my site.

I have navigated to header.php and it makes reference to <?php shapely_top_callout(); ?>

The problem is, I cant find the file that it is referencing.

Can somebody please let me know where the file thats being referenced is located?

When i can locate that file i want to make some changes to the page-title-section.

Thanks very much.

Hey there

Use this plugin to search for strings in the WordPress theme, in your case search for shapely_top_callout

or, use this plugin and you will know which files were used to render the page

Brilliant, thanks for the help.

Hi, I actually have another question related to this.

I now need to update the shapely_top_callout function.

The problem is i cant figure out what hook calls the function:

remove_action('xxxx', 'shapely_top_callout');

function'shapely_top_callout_new(){
//new code here
}
add_action('xxxx', 'shapely_top_callout_new');

Could you please help with what code needs replacing above?

Thanks

Good morning

What exactly you want to do? can you tell me what is your goal?

try to search this function in the theme files with the plugins above:

shapely_top_callout

Hi Noda,

I used the plugins and managed to find the correct file with no problems.

The file in question is the extras.php file.

The shapely_top_callout function contains a line of code that I want to change.

I tried duplicating the extras.php file in the child theme and making the change, unfortunately this did not override the parent theme file.

All i need to do in the extras.php file is to change a <h3> tag to a <h1> tag.

can you advise on the best way to do this?

Thanks

Hey there

You need to override that function from child theme function.php file,
please check this tutorial and if you still can’t get it, let me know

Hey,

I have tried all of the options that were in your suggested article.

Unfortunatley they all give me the following error:

Cannot redeclare shapely_top_callout() (previously declared

Do you have another suggestion?

Thanks

Hi Noda,

Any update for this?

thanks,

Sorry for delay,

Let me try it, please use this plugin to create temporary access for us, its automatic login link and does not requires sharing your admin details. here is How To guide. at the and don’t forget about  “Set as private reply” at the bottom of the message box

 

Hi Noda,

The temp log in link is:

https://digital-d.cloudaccess.host/wp-admin/?wtlwp_token=dfb92cc19506f1df4c7369be074bee18

Thanks again for your help.

Ben

hello again noda,

i have just noticed that the code i was using was being removed from the functions.php file evrytime i changed it due to the error.

I have added it back in inside a comment so that it is not removed.

Can you please take a look please to see what is the problem.

thanks,
Ben

Hi Ben

Sorry about the delay, can you please enable link again?

Hi noda

The link is active again:
https://digital-d.cloudaccess.host/wp-admin/?wtlwp_token=dfb92cc19506f1df4c7369be074bee18

Thanks

Hi Noda,

Any update on this?

All I need to do is add some html to this function: shapely_top_callout()

Surely there is an easy way to do this?

Thanks

Hey there

Please take my apologies, this takes a little bit longer
With this user role I cant view dashboard fully, please grant administrator access

hey,

Administrator access has now been granted.

Thanks