Thanks!
Hi Simion,
Thanks for your reply. But no, it is not what I meant :). I meant the box that says “Een dagelijkse verzameling van de allerbeste vliegticketdeals”. I managed to get it to the top, but i also want the box to be as wide as the body.
Yes exactly. It can stay for now, maybe I’ll remove it later if I don’t like it.
You’re right. Should have put a media query there. Thanks!
Hi there,
Is this still relevant or is there a way to auto list subpages in a block now? I want to use it the same way as described by OP for a page with projects.
Thanks!
Hi Simion,
Thank you for your response.
I checked the first issue and it’s only happends on Firefox. Chrome seems to work fine.
The background issue is fixed by activating the parent theme. I only have a functions.php, page.php and header.php besides the style.css in my child theme. I figured out it’s the page.php that is causing the problem.
I don’t just want to throw it out, because it’s in there for a reason, but it has been a while since I’ve edited it. I have no clue what I changed, can you recognize anything?
<?php
/* ----------------------------------------------------------------------------
the default page template
*/
get_header();
//set the template id, used to get the template specific settings
$template_id = 'page';
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
//get theme panel variable for page comments side wide
$td_enable_or_disable_page_comments = td_util::get_option('tds_disable_comments_pages');
//read the custom single post settings - this setting overids all of them
$td_page = get_post_meta($post->ID, 'td_page', true);
if (!empty($td_page['td_sidebar_position'])) {
$loop_sidebar_position = $td_page['td_sidebar_position'];
}
// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
$td_sidebar_position = '';
if($loop_sidebar_position == 'sidebar_left') {
$td_sidebar_position = 'td-sidebar-left';
}
/**
* detect the page builder
*/
$td_use_page_builder = td_util::is_pagebuilder_content($post);
if ($td_use_page_builder) {
// the page is rendered using the page builder template (no sidebars)
if (have_posts()) { ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="td-main-content-wrap td-main-page-wrap">
<div class="td-container">
<?php the_content(); ?>
</div>
<?php
if($td_enable_or_disable_page_comments == 'show_comments') {
?>
<div class="td-container">
<div class="td-pb-row">
<div class="td-pb-span12">
<?php comments_template('', true); ?>
</div>
</div>
</div>
<?php
}
?>
</div> <!-- /.td-main-content-wrap -->
<?php endwhile; ?>
<?php }
} else {
//no page builder detected, we load a default page template with sidebar / no sidebar
?>
<div class="td-main-content-wrap">
<div class="td-container <?php echo $td_sidebar_position; ?>">
<div class="td-crumb-container">
<?php echo td_page_generator::get_page_breadcrumbs(get_the_title()); ?>
</div>
<div class="td-pb-row">
<?php
switch ($loop_sidebar_position) {
default:
?>
<div class="td-pb-span8 td-main-content" role="main">
<div class="td-ss-main-content">
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
?>
<div class="td-page-header">
<h1 class="entry-title td-page-title">
<span><?php the_title() ?></span>
</h1>
</div>
<div class="td-page-content">
<?php
the_content();
endwhile;//end loop
}
?>
</div>
<?php
if($td_enable_or_disable_page_comments == 'show_comments') {
comments_template('', true);
}?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'sidebar_left':
?>
<div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content" role="main">
<div class="td-ss-main-content">
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
?>
<div class="td-page-header">
<h1 class="entry-title td-page-title">
<span><?php the_title() ?></span>
</h1>
</div>
<div class="td-page-content">
<?php
the_content();
endwhile; //end loop
}
?>
</div>
<?php
if($td_enable_or_disable_page_comments == 'show_comments') {
comments_template('', true);
}?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'no_sidebar':
?>
<div class="td-pb-span12 td-main-content" role="main">
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
?>
<div class="td-page-header">
<h1 class="entry-title td-page-title">
<span><?php the_title() ?></span>
</h1>
</div>
<div class="td-page-content">
<?php
the_content();
endwhile; //end loop
}
?>
</div>
<?php
if($td_enable_or_disable_page_comments == 'show_comments') {
comments_template('', true);
}?>
</div>
<?php
break;
}
?>
</div> <!-- /.td-pb-row -->
</div> <!-- /.td-container -->
</div> <!-- /.td-main-content-wrap -->
<?php
}
get_footer();
Hey Edward,
Thanks for your reply, but I haven’t pressed it twice. Only once. When I type the exact same thing below it, it happends again. And if there really was a <br> wouldn’t you see it in other browser too? Even on the mobile Firefox it doesn’t show.
Hey Bogdan,
Thank you, that helped. One more question I hope you can help me with. I want the same set of share buttons above my pages as i have above the posts. I found this line of code in loop-single8.php that calls for them:
<?php echo $td_mod_single->get_social_sharing_top();?>
How do I integrate this into my page-pagebuilder-title.php? I already managed to add a Facebook share, but I would also like to call this whole set of share buttons. I tried several things, but my content just dissapears whatever I try, so I’m doing something wrong. What would be the right code to add?
Code now:
<?php while ( have_posts() ) : the_post(); ?>
<div class="td-main-content-wrap td-main-page-wrap">
<div class="td-container tdc-content-wrap">
<div class="td-page-header td-container">
<div class="td-crumb-container">
<?php echo td_page_generator::get_page_breadcrumbs(get_the_title()); ?>
</div>
<h1 class="entry-title td-page-title">
<span><?php the_title() ?></span>
</h1>
<?php echo do_shortcode('[vc_row][vc_column][vc_facebook][/vc_column][/vc_row]'); ?>
</div>
<?php the_content(); ?>
</div>
<?php
if($td_enable_or_disable_page_comments == 'show_comments') {
?>
<div class="td-container">
<div class="td-pb-row">
<div class="td-pb-span12">
<?php comments_template('', true); ?>
</div>
</div>
</div>
<?php
}
?>
Hey Catalin,
No, what I mean is that I want the description of the authors included. I get this: https://www.screencast.com/t/x8ra5KbiZqv8
But I want this: https://www.screencast.com/t/fB8EiFC7Vp
Thanks!
Hi Bogdan,
I know how to create a menu item, but I would like a button in the main menu. Or is it possible with CSS to give just one of the items in the menu a different color?
Hey dodl,
No need to activate it with this theme, it’s already activated. You can find the latest Visual Composer in the package you can download from Envato. Check out this tutorial on how to update. https://forum.tagdiv.com/update-the-visual-composer-plugin-wpbakery/
Did the trick. Thank you!
Hey Catalin,
Mmm, I see. I have tried a few more things now, but still nothing. I don’t have any cache plugin. I have tried it with any custom CSS in my themepanel removed. I have tried both the native text widget and the tagdiv one. I have checked out the color with developer tools, and I don’t think I have defined this color anywhere. Can you have a look on the page? http://tinyurl.com/h2ocnqv
Hey Catalin,
I figured I’d ask the question in this topics, because it relates. I did what you said and it worked, only the background color of the element is not copied. Any idea why? It is mentioned in the code, so I guess it should work.
This is the code, the yellow background doesn’t display:
[vc_cta h2="Help us grow our network of kids correspondents" h4="Let childrens voices be heared" txt_align="center" add_button="bottom" btn_title="Donate" btn_color="primary" btn_size="lg" btn_align="center" btn_link="url:http%3A%2F%2Fwww.theyouth.org%2Fdonate|title:Donate||" btn_button_block="true" btn_custom_onclick="true" css=".vc_custom_1479844170836{background-color: #ffee00 !important;}"][/vc_cta]
Hey Catalin,
As mentioned, the problem only appears in the mobile theme. It has already been set in the translations panel for months. In the desktop theme is works fine, but it doesn’t translate in the mobile theme.
Thanks for the response. It works. Any suggestions on how to change ‘By’ to my own language? It’s only wrong on the mobile theme.
There isn’t any custom CSS I could use to add them to posts on mobile or pages in general?
Or can the settings for the pages be exactly the same as for the posts? To get all the icons standard for a page?
Here you go > http://ow.ly/EnDg300ZE7e
Hello Catalin,
That’s what I said. I have already changed that a long time ago, before there even was a mobile theme. On the normal web page its translated, on the mobile theme it is not. http://ow.ly/EnDg300ZE7e
I did set the slug to featured, but ut still appears. Could it be because the category id nr is different now?
Hi Bogdan,
I actually did that, but the categoty still showed up everywhere. I have hidden it now with some code I found on this forum:
action set_category_widget_parameters($args) {
$args[‘exclude’] = ‘154’;
return $args;
}
add_filter(‘widget_categories_args’,’set_category_widget_parameters’);
But it would be better if that is not necessary. Any idea why it would still show up? Where is the code the theme uses to hide the orginal category?
Never mind. After about 20 minutes it suddenly worked : >
Hey Catalin,
I’m glad we understand eachother now 🙂
But that’s to bad. So maybe you could help me with an alternative solution?
If I can’t fix it at the moment, I would like to display a message for people on tablets, something like “Please tilt your device for the best display of this website”.
Could you help me with a CSS media query so that a message is displayed between certain screen widths?