Hi there,
Is there someway i can rename all code block element that are used within the page while using page builder? For example i have used three different code block element within the page i can rename them to block A, B, C or any custom name can assign to each code block that display within the page?
Thanks
Hi ramzan70,
Not sure if I understand what you are trying to do, you want to replace the text reading code block on the backend with a, b or c?
Thanks,
Rikard
Hi Rikard,
Thanks for your response, actually yes that is what i want, is it possible somehow?
Hi!
You can refer to this post – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and enable custom CSS field for ALB elements and give your code blocks a custom class.
Cheers!
Yigit
Hi Yigit,
I have done what you have asked, now custom class field does comes with code block but the text i put in custom class filed doesn’t display or represent code block. See image i want to rename that code block writing with custom names.
Hi!
Please go to Enfold/config-templatebuilder/avia-shortcodes/codeblock.php and find
$this->config['name'] = __('Code Block', 'avia_framework' );
and change it as needed
Regards,
Yigit
Thanks for your kind assistance, i will do that but in that way every code block name remains the same i suppose, i want every code block i used have facility to rename in order to my client understand for what purpose code block is used.
Hi,
What you are looking to do is out of scope of theme support, I’m not sure if it’s even possible to be honest. I’m guessing the reason you want to do this is to keep track of the code you put in the different element, maybe you could try adding a text block above each one and then hiding them with CSS?
Regards,
Rikard