-
AuthorPosts
-
January 22, 2015 at 4:02 pm #383734
When i go to appearance/menus and add a new page as menu item and then click save menu….the menu item is saved as custom menu and destroys the website menu.How can i fix this?
Login and try to put an new menu item in the main menu and see what happensJanuary 23, 2015 at 4:08 am #384186January 23, 2015 at 5:34 pm #384461This reply has been marked as private.January 23, 2015 at 7:44 pm #384580Hi!
1. Refer to this topic:
https://kriesi.at/support/topic/sidebar-for-search-results/2. Please elaborate, a mockup of what you want to achieve would be helpful.
3. I’m not seeing that widget anywhere on your site.
Cheers!
JosueJanuary 26, 2015 at 9:10 am #385292This reply has been marked as private.January 26, 2015 at 6:02 pm #385641Hi!
You can use the following filter to add a custom content to all pages using ALB (after content):
add_filter('avf_template_builder_content', 'add_custom_content_after', 10, 1); function add_custom_content_after($content = "") { $content .= '<div>Custom Text Here</div>'; return $content; }
Cheers!
JosueJanuary 27, 2015 at 9:02 am #386052This reply has been marked as private.January 27, 2015 at 9:10 am #386058Hey!
Yes, you’d need to wrap the text with _e:
add_filter('avf_template_builder_content', 'add_custom_content_after', 10, 1); function add_custom_content_after($content = "") { $content .= '<div>'._e( 'Custom Content.', 'my_textdomain' ).'</div>'; return $content; }
Regards,
JosueJanuary 27, 2015 at 9:57 am #386083This reply has been marked as private.January 27, 2015 at 11:27 am #386134This reply has been marked as private.January 27, 2015 at 3:01 pm #386247Hi!
Yes, you should add the code to Functions.php file in Appearance > Editor. It will appear above Footer section
Best regards,
YigitJanuary 27, 2015 at 3:39 pm #386296This reply has been marked as private.January 28, 2015 at 4:49 am #386762Hi!
Use this instead:
add_filter("avf_template_builder_content", "add_custom_content_after", 10, 1); function add_custom_content_after($content = "") { $content .= "<div>".__("Custom Content", "text_domain")."</div>"; return $content; }
Regards,
JosueJanuary 28, 2015 at 10:26 am #386853This reply has been marked as private.January 28, 2015 at 3:55 pm #387033This reply has been marked as private.January 28, 2015 at 11:36 pm #387469Hey!
In that case you’d need to edit footer.php (you can have this on a child theme) and put the HTML content there, before the <footer> opening.
Cheers!
JosueJanuary 29, 2015 at 9:14 am #387566and how i will translate the ccustom html if i put the below before the footer?
<div custom1>custom content which will be able to translate in the future</div>
<div custom2>custom content which will be able to translate in the future</div>January 29, 2015 at 11:21 am #387623Refer to:
http://codex.wordpress.org/Function_Reference/_eRegards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.