- Apitd_api_header_style::delete
- Apitd_api_header_style::update_key
- Apitd_api_header_style::update
- Apitd_api_header_style::add
- ApiAPI – Header style – Introduction
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- ApiAPI – Top Bar Template – Introduction
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- ApiAPI – Single Template – Introduction
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- ApiAPI – Footer Template – Introduction
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
Ok, got it, thank you, Lucian!
Hi,
Please use this custom css in theme panel > custom css:
@media (min-width: 1200px){
.td-header-bg .td-a-rec-id-header {
left: 0px ;
}
}
You will get this result: http://screencast.com/t/lKksmGDa97cs
Thanks
Hi,
In that case you will need to add the background using background-image: url(''); via css and target the container that you want to add the image as a background.
Yes, you will have to add a class, like this:
<div class=”span4 column_container my_custom_class”>
You need to do this for templates that you can not target other.
For the post page template for the sidebar you will not have to add a class because there is one which you can use: http://screencast.com/t/iBSu7S7VKXx
Thanks
Hi Christopher!
Thank you for your answer. Before to ask i tryed a several plugins, but none of them worked. I found how to do the icons manually, but i didn’t know where i should place additional code for theme. I need the icons in my sidebar which is on every post and categories, but not page. So if i got it right to do any changes in sidebar which is on category page in need to change category.php. But what is about post pages? Do i need loop-single file or something else?
Eventually i could add the icons using one more plugin, but i still wonder how i can change, for instance, background images of sidebars, headers, menus and stuff like this.
Lucian wrote here https://forum.tagdiv.com/topic/control-of-widget-headerslines-on-sidebar/#post-19605 that in order to customize sidebar in categories i need to add a special class to category.php and then customize this class. But i still wait for his answer about customizing other things, coz it’s not easy on my own to understand which file is responsible for what, it’s not the only one css file here…
I have similar issues. The slider on my home page shows <a> tags but clicks are not working. I moved the revolution slider js into the header and the footer via the rev slider settings, edited and updated the page and still no change. All theme files and related plugins are up to date from the v4 package I downloaded.
The site home page with posts slider: http://www.ritani.com/blog/
-
This reply was modified 11 years by
Diamonds Forever.
-
This reply was modified 11 years by
Diamonds Forever.
Hi,
one question…I have the 980px Layout and the adbanner in the header overlays the Logo. How can I move the banner more to the right side?
Thanks!
Hi,
I am trying to make the menu top header like the one see example (http://news.distractify.com)
I am choosing this Style 3 (full width logo) + menu in Header options, i am trying to get the logo in the same line to the menu with no success ! i know this something about css ! can you help me please ! You can see a live example in my test website
http://wtbuzz.com
I need not just to change the colors of menu and header, i’ve got some templetes which i’d like to use as a background.
Did i get you right that i need to add a specil class here?
<div class=”span4 column_container”>
<?php get_sidebar(); ?>
</div>
And then i can use custom css for this class? Can i add a backgrond image for it, not just to change the colors?
And your example was for category page template, i want to change sidebar on post templete too, i looked at loop-single file, but didn’t find there anything about sidebar..
I tried to implement as per your instructions. Please check this screenshot it was with the_field.
I don’t know where i am making a mistake. I again changed the code to get_field and it still remains the same. Here you can see it.
Here is the full code of loop-single-1.php in which i am inserting.
<?php
/**
* The single post loop for post template 1
**/
if (have_posts()) {
the_post();
$td_mod_single = new td_module_1($post);
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<header>
<?php echo $td_mod_single->get_title();?>
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
<?php //echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_commentsAndViews();?>
</div>
</header>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('art-big-1col');
}
?>
<div class="td-post-text-content">
<?php echo $td_mod_single->get_content();?>
// Set up your row, column, and tabs element
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Simplest possible example of getting ACF data, sub in yours
$data_1 = get_field('2g_network');
$data_2 = get_field('3g_network');
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title="The first tab" tab_id="tab_1"];
$to_echo .= $data_1;
$to_echo .= '[/vc_tab]';
$to_echo .= '[vc_tab title="The second tab" tab_id="tab_2"];
$to_echo .= $data_2;
$to_echo .= '[/vc_tab]';
// (You could wrap each block in an if to skip a tab if the data is empty)
// When you have all your tabs, close the elements
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Do whatever
echo $to_echo;
</div>
<div class="clearfix"></div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_social_sharing();?>
<?php echo $td_mod_single->get_social_like_tweet();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
<?php
} else {
//no posts
echo td_page_generator::no_posts();
}?>
I think the code is not executing. Am i placing it in the wrong way?
Hi,
You can set and use the “Style 3-(full width logo) + menu” from theme panel > header style:
You will get this resul: http://screencast.com/t/XHGKSWEc
You might also need to style the ad box, use this css:
.td-visible-desktop {
margin-bottom: 48px;
}
Thanks
Hi,
Unfortunately the headers layouts from theme panel > header style don’t include a layout like this, you can chose header style no 1 then make some changes to the header-style-1.php file, like this: http://screencast.com/t/xRABa33Nm
You will need to style the headers container to look as you like and you need custom css for this, unfortunately we cannot offer custom work as we work hard on the development, updates, fixes and support. You can always get a freelancer from sites like: http://studio.envato.com/ if you don’t know how to do it yourself.
Hope this helps!
Thanks
Hi,
The menu and header background can be changed from theme panel > theme colors: http://screencast.com/t/MkltZxpqu3
You need to use css for sidebar, follow this topic https://forum.tagdiv.com/topic/control-of-widget-headerslines-on-sidebar/#post-19605 as I explained there how to target the sidebar and use background-color: to change it as you like.
Thanks
Thanks Chris And The Medium
Both of you guys were right…
The problem was that I forgot to place the “header style1.php” file in the “parts” folder inside of the child theme…
Everything works perfectly fine now thanks!
Hi tagDiv Support,
Thanks for a great theme. Can you please guide me how to put the leaderboard 970×90 above the logo. And please how to extend the logo image to 480px (align left) and a teaser image 465px (align right) next to logo, like this: http://naturguide.dk/test/header_layout.jpg
Thank you very much
Lisborg
You likely need to remove the auto generated echo home_url() to the static URL you want in all the header-styleX.php files to be safe.
in the /parts/ folder, try the
header-style-1.php
logo-mobile.php
edit this line
<a itemprop="url" href="<?php echo home_url(); ?>">
<img width="300" class="td-retina-data" data-retina="<?php echo htmlentities($td_customLogoR) ?>" src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
</a>
need to replace these
href="<?php echo home_url(); ?>"
with
href="http://yoursite.com/directory"
I tried doing option 1 before and it completely broke my whole site to the point that I had to recreate all of my posts, and images…it was a nightmare.
I tried the second option before. well, I erased the entire line. it didnt work.
Then i tried your suggestion of replacing the php line, but it failed to work and the logo still links to pitchforkmarketing.com
Im working of of the child theme file “header-style-1.php”
I’m certain that is the correct file. Any other options
btw, thanks TheMediumUTM
Hi!
I’d like to add/change a background of menu, header, sidebar, how can i do it?
I found a td-bootstrap.css file, but it’s tricky to make any changes there, coz it’s a one-line-file..
Thaks in advance!
Try changing the site url in WordPress’s settings (“General” tab) to pitchforkmarketing.com/blog. This represents where the WP site is.
The target of that link is generated in whichever header file is associated with the style you’ve chosen in the theme panel (and located in wp-content/themes/Newspaper/parts/). The relevant code is <?php echo home_url(); ?>. If the first step fails to work, or for some reason you don’t want to change youur site url, you could create a child theme and change the line to <?php echo home_url() . '/blog'; ?>.
You’re welcome! Where you put it depends where you want it in the post. You could have it between header and content, after content, after footer, after comments… etc.
If you open up loop-single.php or loop-single-1.php you will easily see the blocks where the header, content, and footer parts are prepared and echoed. For loop-single-2 through loop-single-5 it’s a little more complicated because the header block is located in single_template_2.php through single_template_5.php instead.
Just throw this code between a <?php tag and a ?> tag into one of those handily titled blocks.
And if you’re not using one already, don’t forget that these files should be modified in a child theme so they will survive theme updates.
The tab ID is okay as it is. As far as I can tell, it just needs to be unique and have no spaces.
P.S. If you know some CSS you could also add classes to your $to_echo string around your content and style that in the Custom CSS section of the theme panel. Wrapping the tabs is probably going to mess with them a little, but the content inside the tabs can be styled freely.
Thanks. Changed the font size and its working fine.
Hi,
Glad you managed to solve it. However, I have checked your site but didn’t find the ad, looks fine to me though just missing the ad code.
Please let me know if you have any other theme related issues.
Thanks
Hi,
This code works great but I am wondering what the size of the header image should be for the full width background?
Thanks!
-
This reply was modified 11 years by
Lanell.
solved
Hi,
That happens because the menu items don’t fit into one line and fall into a second line, you will have to change the font size to make it smaller or chose smaller names for the menu items or use fewer menu items or you can customize the menu into another line when in tablet view.
You can follow this topic and try to apply this solution to yourself also: https://forum.tagdiv.com/topic/menu-problem-2/
Hope this helps!
Thanks
Hello Again.
I have a new Problem. Since the Update to WP 4.0
Now, when i show something over the Custom AD 1 Field the sidebar will kicked unter the content.
How can i fix it?
http://unserluensche.de/category/stadtleben/
If i disable the AD the Layout will be normal.