Jam
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Functions.phpOh I see that it created a new widget instead of using the old one in the parent theme.
Thank you very much for your time and help!!
Forum: Themes and Templates
In reply to: Functions.phpWhat do you mean by
you also need to correct the function name at the top of the code.
Right now I have (with the php at the top)
// Register new sidebars function customsidebars() { register_sidebar(array( 'name' => 'PagesSidebar_HR', 'description' => esc_html__('A widget area, used as a sidebar for the Page Template HR.', 'udesign'), 'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', )); register_sidebar(array( 'name' => 'PagesSidebar_IT', 'description' => esc_html__('A widget area, used as a sidebar for the Page Template IT.', 'udesign'), 'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', )); } add_action( 'widgets_init', 'customsidebars', 15 );
It doesnt crash, but does not properly register the sidebars. Am I missing something?
Forum: Themes and Templates
In reply to: Functions.phpWow awesome! So I put the following but it causes a server error. Is there some small syntax error? I know my register_sidebars work. Can I simply put these new registers in a unique function in the child theme?
I think my error is with the last add_actions. Is ‘widgets_init’ almost universal to all themes?
function u-design-register-new-sidebars() { register_sidebar(array( 'name' => 'PagesSidebar_HR', 'description' => esc_html__('A widget area, used as a sidebar for the Page Template HR.', 'udesign'), 'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', )); register_sidebar(array( 'name' => 'PagesSidebar_IT', 'description' => esc_html__('A widget area, used as a sidebar for the Page Template IT.', 'udesign'), 'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', )); } add_action( 'widgets_init', 'u-design-register-new-sidebars()', 17 );
Forum: Themes and Templates
In reply to: Functions.phpI guess I can see why!
I want to update a function ‘register sidebar’ with two more sidebars. I’m not sure how I can just add on a new function, or modify it in my child theme.
The beginning starts like:
if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Pages Sidebar', 'description' => esc_html__('A widget area, used as a sidebar for regular pages.', 'udesign'), 'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', ));
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateSorry, I should have read all the documentation first before posting. I’ll move this thread over to child themes.
Thanks!
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateCan I simply @import the old file, and write in only the changes / additions I have made?
What about other php files?
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateAwesome. I’m doing that now. Unfortunately I did make additions to functions.php. Can I simple add them in?
Also the theme I’m ‘childing’ uses a more complex css styling. It has a basic style.css but then uses other css files in a subdirectory to style is pages. I have edited those. Can I simple put those files in my child theme (in the same directory structure) with my edits only or do I need to copy the entire file?
Thanks a bunch.
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateI will also remove all duplicate lines of code and only keep the changes I made. I figure this way I will be able to go through my changes a lot faster
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateOk last question!
Say I have made many changes to a theme directly. In order to make those changes on a new child theme can I do the following?
Re-download a clean install of the theme and call that my parent theme. My active theme with the changes will be my new child theme. This way all the changes will be made! I will remove all duplicated files.
Is this practice valid?
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateOk got it. Thanks a bunch! I know this is a bit beyond the scope, but when the parent files update, say the php file that is in my child theme was updated in the parent, how does that change get made on the site if my child theme is covering it up?
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateGot it! Thanks!
Quick sidenote on child themeing: Is it generally ‘ok’ to make changes to internal php files or is there a better way to go about this?
Thanks!
Forum: Themes and Templates
In reply to: Custom CSS On Single Page TemplateI am now using Custom CSS Manager.
My question is how can I control elements on a specific page template with css without touching other pages. CSS changes I make appear to alter other page templates as well.
Forum: Networking WordPress
In reply to: Transfer Existing Accounts Into New BlogI guess I’ll have to try it out for myself, but I’m still caught up by the line:
If you plan on creating sites that are strongly interconnected, that share data, or share users, then a multisite network might not be the best solution.
Doesn’t that counteract what you say?
Forum: Fixing WordPress
In reply to: CSS Style ListSorry about that! Thanks though.
Forum: Networking WordPress
In reply to: Transfer Existing Accounts Into New BlogAwesome. Sorry this may sound noobish. So can multiple child-sites of one site share users.
I’mt thinking about the child-blogs more like sub-groups each with their own toolset of fresh plugins and whatnot.
Is this correct?
Thanks for your time!