Dottoro Theme Documentation

Tutorial to get your theme to work

PrologueFirst StepsFront PageCreating a custom front pageBlog, News and Portfolio post typesPost Type specific settingsGeneral settingsSingle post settingsCategory / Tag / Date archive page settingsPermalink settingsOptions on single post pagesGeneral page optionsImage optionsGallery settingsPage Templates and PagesPage SettingsPage TemplatesPages created from page templatesGeneral page settingsGallery settingsBlog page settingsNews page settingsPortfolio and Imagefolio page settingsContact page settingsArchives page settingsAuthors page settingsBoomarks page settingsSitemap page settingsSpecial pagesCategory and tag page settingsArchive and date page settingsSearch page settingsAuthor page settings404 page settingsHeader and MenuSubheadersSubheader specific shortcodesPredefined SubheadersCreating SubheadersAssigning subheaders to pagesFooterWidgets in the FooterCopyright and other notices in the FooterSidebarWidgets on the SidebarWidth and alignment of the sidebarWidget AreasWidgetsBreadcrumbShortcodesShortcodes In Alphabetical OrderShortcodes By CategoriesNested ShortcodesPost TemplatesOverlaysMedia and External MediaOverview of galleries, gallery listings and slideshowsGalleries and Gallery ListingsAbout Galleries In GeneralCreating And Managing Galleries[gallery_list] shortcodeSlideshows and Popup SlideshowsSlideshowsPopup SlideshowsSlideshow SettingsMost Often Used Slideshow OptionsAll Slideshow OptionsSlideshow Templates - Slideshow Specific ShortcodesStyling Guide For SlideshowsStyling Of Slideshow and Post TemplatesSlidesPopupsSelectorsWeb FontsGeneral Theme SettingsUser RolesExport / Import SettingsCreating theme designsLocalizationHeadingsChild ThemesCSS ClassesResponsive DesignCSS Extension JavaScript ToolkitJavaScript LibraryAction HooksFilter HooksCompatibility Issues
<

33. Action Hooks

Dottoro actions notify your child themes and plugins about events generated by the Dottoro theme. These actions allow you to extend the theme's functionality without editing any of its files. The number of actions will increase in the next versions of the Dottoro theme.

Initial Action Hooks

dottoro_pre
Occurs before any components of the theme have loaded. This is the first event that fires in the theme.
dottoro_init
Initializes the Dottoro theme. Use this hook to initialize your child theme, define constants, import child theme files.
dottoro_before_load
Occurs before the Dottoro theme files have loaded, but after constants have been defined.
dottoro_after_load
Occurs immediately after the Dottoro theme files have loaded and the theme has been initialized. Use this hook for the initialization steps of your child theme that require the Dottoro theme to be initialized.

Whole Page

dottoro_before_page
Occurs before the theme starts building the contents of the current page.
dottoro_page
Occurs when the theme starts building the contents of the current page.
dottoro_after_page
Occurs when the theme has built the contents of the current page.

Page Structure

dottoro_doctype
Outputs the opening elements of the page source (<!doctype>, <html>, <head> and charset <meta>).
dottoro_doctitle
Outputs the document title element (<title>).
dottoro_meta
Outputs meta elements in the head section of the document (<meta>).
dottoro_scripts_styles
Outputs scripts and styles in the head section of the document (<meta>).
dottoro_styles_pre
Allows to insert custom styles before Dottoro styles.
dottoro_styles
Allows to insert custom styles after Dottoro styles but before Dottoro scripts.
dottoro_scripts_pre
Allows to insert custom scripts before Dottoro scripts.
dottoro_scripts
Allows to insert custom scripts after Dottoro scripts.
dottoro_after_wp_head
Occurs immediately after the wp_head method has been called. By default, if you are logged in and you have 'edit_themes' privilege, it outputs scripts that are required for Dottoro Theme Editor.
dottoro_close_head_open_body
Outputs closing tag of the head and the opening tag of the body section (</head>, <body>).
dottoro_open_main_wrapper
Outputs the opening tag of the wrapper element, that contains the whole content of the page.
dottoro_open_headers
Outputs the opening tags of the headers section.
dottoro_headers
Outputs the contents of the headers section. The headers section includes both header and subheader.
dottoro_open_header
Outputs the opening tags of the header section.
dottoro_header
Outputs the contents of the header section. The header section contains the site logo, title and description, the Header widget area and the primary navigation bar.
dottoro_header_item
Outputs an item of the header section.
dottoro_close_header
Outputs the closing tags of the header section.
dottoro_open_subheader
Outputs the opening tags of the subheader section.
dottoro_subheader
Outputs the contents of the subheader section.
dottoro_close_subheader
Outputs the closing tags of the subheader section.
dottoro_close_headers
Outputs the closing tags of the headers section.
dottoro_open_page_body
Outputs the opening tags of the page body section.
dottoro_page_body
Outputs the contents of the page body section. This section includes the content of the page and the sidebar.
dottoro_open_body_content
Outputs the opening tags of the page content section.
dottoro_body_content
Outputs the contents of the page content section.
dottoro_close_body_content
Outputs the closing tags of the page content section.
dottoro_open_sidebar
Outputs the opening tags of the sidebar.
dottoro_sidebar
Outputs the contents of the sidebar.
dottoro_close_sidebar
Outputs the closing tags of the sidebar.
dottoro_close_page_body
Outputs the closing tags of the page body section.
dottoro_open_footer
Outputs the opening tags of the footer section.
dottoro_footer
Outputs the contents of the footer section. This section includes footer widget and text boces.
dottoro_open_footer_widgetbox
Outputs the opening tags of the footer widget box.
dottoro_footer_widgetbox
Outputs the contents of the footer widget box.
dottoro_close_footer_widgetbox
Outputs the closing tags of the footer widget box.
dottoro_open_footer_textbox
Outputs the opening tags of the footer text box.
dottoro_footer_textbox
Outputs the contents of the footer text box.
dottoro_close_footer_textbox
Outputs the closing tags of the footer text box.
dottoro_close_footer
Outputs the closing tags of the footer section.
dottoro_close_main_wrapper
Outputs the opening tag of the wrapper element, that contains the whole content of the page.
dottoro_close_body
Outputs the closing tag of the body section (</body>).
dottoro_close_html
Outputs the closing tag of the document (</html>).

Comments

dottoro_open_comments_block
Outputs the opening tags of the comments block.
dottoro_comments_block
Outputs the contents of the comments block. This section includes comments and trackbacks.
dottoro_open_comments
Outputs the opening tags of comments.
dottoro_comments
Outputs the contents of the comments. This section includes the title line above comments, the comments list, pagination and form.
dottoro_open_comments_title
Outputs the opening tags of title line above the comments.
dottoro_comments_title
Outputs the contents of the title line above the comments.
dottoro_close_comments_title
Outputs the closing tags of title line above the comments.
dottoro_open_comments_pagination
Outputs the opening tags of comments pagination.
dottoro_comments_pagination
Outputs the contents of comments pagination.
dottoro_close_comments_pagination
Outputs the closing tags of comments pagination.
dottoro_open_comments_list
Outputs the opening tags of comments list.
dottoro_comments_list
Outputs the contents of comments list.
dottoro_close_comments_list
Outputs the closing tags of comments list.
dottoro_open_comments_form
Outputs the opening tags of comments form.
dottoro_comments_form
Outputs the contents of comments form.
dottoro_close_comments_form
Outputs the closing tags of comments form.
dottoro_open_comments_closed
Outputs the opening tags of the 'comments are closed' message.
dottoro_comments_closed
Outputs the contents of the 'comments are closed' message.
dottoro_close_comments_closed
Outputs the closing tags of the 'comments are closed' message.
dottoro_close_comments
Outputs the closing tags of comments.
dottoro_open_pings
Outputs the opening tags of trackbacks.
dottoro_pings
Outputs the contents of the trackbacks. This section includes the title line above trackbacks and the trackbacks list.
dottoro_open_pings_title
Outputs the opening tags of title line above the trackbacks.
dottoro_pings_title
Outputs the contents of the title line above the trackbacks.
dottoro_close_pings_title
Outputs the closing tags of title line above the trackbacks.
dottoro_open_pings_list
Outputs the opening tags of trackbacks list.
dottoro_pings_list
Outputs the contents of trackbacks list.
dottoro_close_pings_list
Outputs the closing tags of trackbacks list.
dottoro_close_pings
Outputs the closing tags of trackbacks.
dottoro_close_comments_block
Outputs the closing tags of the comments block.

Font Icons

dottoro_iconset_register
Registers the two default font icon set and allows to register your own ones.