Search Results for 'block'

Results from the Forum
atflaten
Participant
#0

Hi

I’ve added the logo as a menu item that comes into view when I scroll down on the page (after following these instructions: https://forum.tagdiv.com/topic/moveplace-logo-in-menu-when-scrolled-down-and-menu-fixed/).

1. However, the image doesn’t show in the menu when I zoom in until the category menu button changes from three lines to nine small squares (mobile view). I would like the image to follow in the menu bar when I scroll down on a mobile device, as well.

2. How do I make the menu-image center-aligned? I’ve tried to modify the ‘display: block;’ line in CSS, but with no luck.

Thanks,
Are

atflaten
tagDiv Member

Marius, I’ve followed your instructions, and it works great on desktop.

1. However, the logo-menu-image doesn’t show when I zoom in until the category menu button changes from three lines to nine small squares. I would like the image to follow in the menu bar when I scroll down on a mobile device.

2. How do I make the logo-menu-image center-aligned? I’ve tried to modify the display: block; line, but with no luck.

Thanks,
Are

  • This reply was modified 12 years by atflaten.
Marius
tagDiv Staff

Hi,
If you use that template you have to add some widgets in the sidebar. We used the Social Counter and some blocks. You can use the default sidebar or use a custom one.

For other tips you can take a look here: https://forum.tagdiv.com/newspaper-documentation/
Thanks for the message!

tcdraper
tagDiv Member

If you want to keep the whole image and not just have a really zoomed in image, then keep td_module_slide_big.php as is, and simply add the following code to your CSS. You can see how it turns out at my testing site: http://www.teabear.com/sandbox/


@media (max-width: 767px) {
  .td_block_slide_big .iosSlider-col-3,
  .td_block_slide_big .iosSlider-col-3 .item {
     min-height: 190px !important;
  }
} 
hyorialba
Participant
#0

I am studying your demo. Using the Visual Composer, I have copied the “Home” page exactly adding the “Big Slide” and “Block 2”.

I am using “Homepage – with article list” template.

The problem is besides my “Latest Articles”, I don’t see “Stay Connected” and “Latest”, it’s just blank.

While on the demo, it’s there.

Did you customize the “Default sidebar”?

Marius
tagDiv Staff

Hi,
To work should be like this:
Category: My work
In that category you have “photo“, “graphic“, “web” as sub-categories.

My work -> Photo
My work -> Graphic
Mu work -> Web

In the block select the My work category and use option from Show child categories menu.

Hope this help.
Thanks for the message!

vorman
tagDiv Member

My apologies the last set of codes was for Articles with a BG. Please see the following code that should reflect what you requested that I do. I am still having a problem on this page when I make your amendments.

<?php
/* Template Name: Homepage – with article list */

get_header();

td_global::$current_template = ‘page-homepage-loop’;

global $paged, $loop_module_id, $loop_sidebar_position, $post, $more; //$more is a hack to fix the read more loop
$td_page = (get_query_var(‘page’)) ? get_query_var(‘page’) : 1; //rewrite the global var
$td_paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; //rewrite the global var

//paged works on single pages, page – works on homepage
if ($td_paged > $td_page) {
$paged = $td_paged;
} else {
$paged = $td_page;
}

$list_custom_title_show = true; //show the article list title by default

$td_homepage_loop_filter = ”; //homepage loop filter metadata

/*
read the settings for the loop
—————————————————————————————- */
if (!empty($post->ID)) {
td_global::load_single_post($post);
//read the metadata for the post
$td_homepage_loop_filter = get_post_meta($post->ID, ‘td_homepage_loop_filter’, true); //it’s send to td_data_source
$td_homepage_loop = get_post_meta($post->ID, ‘td_homepage_loop’, true);

if (!empty($td_homepage_loop[‘td_layout’])) {
$loop_module_id = $td_homepage_loop[‘td_layout’];
}

if (!empty($td_homepage_loop[‘td_sidebar_position’])) {
$loop_sidebar_position = $td_homepage_loop[‘td_sidebar_position’];
}

if (!empty($td_homepage_loop[‘td_sidebar’])) {
td_global::$load_sidebar_from_template = $td_homepage_loop[‘td_sidebar’];
}

if (!empty($td_homepage_loop[‘list_custom_title’])) {
$td_list_custom_title = $td_homepage_loop[‘list_custom_title’];
} else {
$td_list_custom_title =__td(‘LATEST ARTICLES’);
}

if (!empty($td_homepage_loop[‘list_custom_title_show’])) {
$list_custom_title_show = false;
}

}

echo td_page_generator::wrap_no_row_start();
/*
the first part of the page (built with the page builder) – empty($paged) or $paged < 2 = first page
—————————————————————————————- */

/*
the main fake loop
—————————————————————————————- */

$more = 0; // fix read more

echo ‘<div class=”row-fluid”>’;

switch ($loop_sidebar_position) {

case ‘sidebar_left’:
?>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”http://schema.org/WPSideBar”&gt;
<?php get_sidebar(); ?>
</div>
<div class=”span8 column_container” role=”main” itemprop=”mainContentOfPage” itemscope=”itemscope” itemtype=”http://schema.org/Blog”&gt;
<?php if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) { ?>
<h4 class=”block-title”><span><?php echo $td_list_custom_title?></span></h4>
<?php }
query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
get_template_part(‘loop’, ‘simple’);
echo td_page_generator::get_pagination();
?>
</div>
<?php
break;

case ‘no_sidebar’:
?>
<div class=”span12 column_container” role=”main” itemprop=”mainContentOfPage” itemscope=”itemscope” itemtype=”http://schema.org/Blog”&gt;
<?php if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) { ?>
<h4 class=”block-title”><span><?php echo $td_list_custom_title?></span></h4>
<?php }

query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
get_template_part(‘loop’, ‘simple’);
echo td_page_generator::get_pagination();
?>
</div>
<?php
break;

//sidebar right
default:
?>
<div class=”span8 column_container” role=”main” itemprop=”mainContentOfPage” itemscope=”itemscope” itemtype=”http://schema.org/Blog”&gt;
<?php if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) { ?>
<h4 class=”block-title”><span><?php echo $td_list_custom_title?></span></h4>
<?php }

//
query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
get_template_part(‘loop’, ‘simple’);

echo td_page_generator::get_pagination();
?>
</div>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”http://schema.org/WPSideBar”&gt;
<?php get_sidebar(); ?>
</div>
<?php
break;
}
wp_reset_query();
if(!empty($post->post_content)) { //show this only when we have content
if (empty($paged) or $paged < 2) { //show this only on the first page
?>
<div class="row-fluid">
<div class="span12 column_container" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"&gt;
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
//read the page settings
the_content();
endwhile; //end loop
}
?>
</div>
</div>
<?php
}
}

echo ‘</div>’; //close the .row
echo td_page_generator::wrap_no_row_end();

get_footer();
?>

vorman
tagDiv Member

Many thanks for the reply Marius. I did update the code and unfortunately it get a blank white page. Please see below. Also, I am using the Home Page – with Article List. I sincerely do appreciate your help here.

<?php
/* Template Name: Homepage – bg + with article list */

get_header();

td_global::$current_template = ‘page-homepage-loop’;

global $paged, $loop_module_id, $loop_sidebar_position, $post, $more;
$td_page = (get_query_var(‘page’)) ? get_query_var(‘page’) : 1; //rewrite the global var
$td_paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; //rewrite the global var

//paged works on single pages, page – works on homepage
if ($td_paged > $td_page) {
$paged = $td_paged;
} else {
$paged = $td_page;
}

$list_custom_title_show = true; //show the article list title by default

$td_homepage_loop_filter = ”; //homepage loop filter metadata

/*
read the settings for the loop
—————————————————————————————- */
if (!empty($post->ID)) {
td_global::load_single_post($post);

//read the metadata for the post
$td_homepage_loop_filter = get_post_meta($post->ID, ‘td_homepage_loop_filter’, true); //it’s send to td_data_source
$td_homepage_loop = get_post_meta($post->ID, ‘td_homepage_loop’, true);

if (!empty($td_homepage_loop[‘td_layout’])) {
$loop_module_id = $td_homepage_loop[‘td_layout’];
}

if (!empty($td_homepage_loop[‘td_sidebar_position’])) {
$loop_sidebar_position = $td_homepage_loop[‘td_sidebar_position’];
}

if (!empty($td_homepage_loop[‘td_sidebar’])) {
td_global::$load_sidebar_from_template = $td_homepage_loop[‘td_sidebar’];
}

if (!empty($td_homepage_loop[‘list_custom_title’])) {
$td_list_custom_title = $td_homepage_loop[‘list_custom_title’];
} else {
$td_list_custom_title =__td(‘LATEST ARTICLES’);
}

if (!empty($td_homepage_loop[‘list_custom_title_show’])) {
$list_custom_title_show = false;
}

//adds the filters for templates: ‘Homepage – with article list’ and ‘Homepage – bg + article list’
//include_once(‘includes/wp_booster/td_homepage_loop_filter.php’);
}

/*
big slide
—————————————————————————————- */
locate_template(‘parts/page-homepage-slider.php’, true);

echo td_page_generator::wrap_no_row_start();

/*
the content if we have one
—————————————————————————————-
02/06/2014 – Disabled this code ITPS Trevor

if(!empty($post->post_content)) { //show this only when we have content
if (empty($paged) or $paged < 2) { //show this only on the first page

?>
<div class=”row-fluid”>
<div class=”span12 column_container” role=”complementary” itemscope=”itemscope” itemtype=”http://schema.org/WPSideBar”&gt;
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
//read the page settings
the_content();
endwhile; //end loop
}
?>
</div>
</div>
<?php

}
}

*/

/*
the main fake loop
—————————————————————————————- */

$more = 0; // fix read more

echo ‘<div class=”row-fluid”>’;

/*
//do the loop
$queryPost = Array(
‘posts_per_page’ => get_option(‘posts_per_page’),
‘paged’ => $paged
);

//hide featured categories
if ($td_featured_posts != ‘show_featured_posts’) {
$queryPost[‘cat’] = ‘-‘ .get_cat_ID(TD_FEATURED_CAT);
}
*/

switch ($loop_sidebar_position) {

case ‘sidebar_left’:
?>
<div class=”span4 column_container”>
<?php get_sidebar(); ?>
</div>
<div class=”span8 column_container”>
<?php if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) { ?>
<h4 class=”block-title”><span><?php echo $td_list_custom_title?></span></h4>
<?php }

query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
get_template_part(‘loop’, ‘simple’);
echo td_page_generator::get_pagination();
?>
</div>
<?php
break;

case ‘no_sidebar’:
?>
<div class=”span12 column_container”>
<?php if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) { ?>
<h4 class=”block-title”><span><?php echo $td_list_custom_title?></span></h4>
<?php }

query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
get_template_part(‘loop’, ‘simple’);
echo td_page_generator::get_pagination();
?>
</div>
<?php
break;

//sidebar right
default:
?>
<div class=”span8 column_container”>
<?php if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) { ?>
<h4 class=”block-title”><span><?php echo $td_list_custom_title?></span></h4>
<?php }

query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
get_template_part(‘loop’, ‘simple’);
echo td_page_generator::get_pagination();
?>
</div>
<div class=”span4 column_container”>
<?php get_sidebar(); ?>
</div>
<?php
break;
}

wp_reset_query();
if(!empty($post->post_content)) { //show this only when we have content
if (empty($paged) or $paged < 2) { //show this only on the first page
?>
<div class="row-fluid">
<div class="span12 column_container" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"&gt;
<?php
if (have_posts()) {
while ( have_posts() ) : the_post();
//read the page settings
the_content();
endwhile; //end loop
}
?>
</div>
</div>
<?php
}
}

echo ‘</div>’; //close the .row
echo td_page_generator::wrap_no_row_end();

get_footer();
?>

betterretailing
Participant
#0

How can i change the line-height and font-size to something bigger than 40px in the Theme panel?

I’ve tried adding custom H1 css but the line height keeps defaulting to something smaller…?

h1 {
  display: block;
  font-size: 70px;
  line-height: 400%;
  letter-spacing: -3px;
  padding: 40px 0px 30px 0px;
  font-family: "runda", Helvetica, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: #000000;
}

Obviously 400% line height is over kill, but it doesn’t seem to mater what i put!

elicese
Participant
#0

Hello! I can not understand how the block list
I’ll explain:
I would like to create a page and connect categories: “photo”, “graphic”, “web”
and make it like the picture attached (Block 2)
I tried in all ways but I did not come out the categories at the top right
Can you explain me how they work?
thank you very much!

nsisongeffiong
tagDiv Member

Hello Radu,

I don’t quite understand your question. I have already indicated where i’ll love to add the labels in the screencasts.

Just so there’s no confusion, i’ll take it from the top.

I’m Using advanced custom fields plugin to create custom fields for my document Category.

I’ve created three fields:

<li>Name of Author</li>
<li>Date of Publication</li>
<li>Name of Publisher</li>

Now ACF Normally posts only the values of the fields to the database and not the Field Names. In a normal post loop i could use echo to display a Field Name Text and then concatenate it with the field value so that my front end would look like this

Field Name: Field Value

due to the $buffy optimisation, i am unable to use echo so i’m looking for a workaround that would enable me add Field Name (Labels) automatically to each Field Value.

Concerning the issue of adding classes to the div, give me the CSS code which you believe will style the solution and i will add it to the CSS.

Like i stated in my last reply, this is a local development server. WordPress installed on XAMPP on my PC, so i can’t give you any link because the site is not live.

I’m looking forward to having this issue resolved and also it takes too long between replies so effectively this issue has taken us four days now. Please see how you can expedite a solution i’d appreciate it much.

Regards,
Effiong

Marius
tagDiv Staff

Hi,
Edit td_module_slide_big.php file like here http://screencast.com/t/2PP0ElYr
art-slide-small

Add this in CSS panel:

@media (max-width: 767px) {
  .td_block_slide_big .iosSlider-col-3,
  .td_block_slide_big .iosSlider-col-3 .item {
    height: 340px !important;
  }
}

Thanks for the message!

Marius
tagDiv Staff

Hello,
Use this code like here in the header menu: http://screencast.com/t/rHCNGGyJ

<div class="row-fluid">
     <div class="span12">
          <?php echo td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'header')); ?>
     </div>
</div>

Don’t forget to erase the ad code from header-style-1.php http://screencast.com/t/CxXxKXr7MkU

Add this in CSS panel

.td-a-rec-id-header {
    left: 0 !important;
    text-align: center !important;
}

If not aligned center can be done from CSS

Thanks!

vorman
Participant
#0

I am trying to move the latest articles to the top of the home page and I have been unsuccessful in doing so in the WP UI. I first wanted to show my latest articles and then my subsequent content blocks. I was wondering if someone could direct me on how to do this?

Thanks you in advance for your comments.

lodowka1
Participant
#0

Hi,

I noticed that user with role Author has access to Themepanel and could change my theme parameters, it’s very dangerous. Is there any way to block Themepanel for other roles than Admin?

Regards
Mariusz

Guideduchien
tagDiv Member

Hi Marius,

I put this code at the end of the file menu-header.php :
<div>
<?php
// show the header ad spot
echo td_global_blocks::get_instance(‘td_ad_box’)->render(array(‘spot_id’ => ‘header’));
?>
</div>

But the ad isn’t placed correctly, pleaselook at this screenshot : http://www.guide-du-chien.com/wp-content/uploads/2014/02/ad-placement.jpg

I can i do with css to place it correctly ? I would like to center it and to make space about 15px between top and bottom ?

Thanks a lot

Guideduchien
tagDiv Member

Hi Marius,

Thanks for your reply. I want to keep my logo above the menu, on the left.

You can view my website here : http://www.guide-du-chien.com.

So the file where i need to ad the code is header-style-1.php. But I would like to keep your code
<?php
// show the header ad spot
echo td_global_blocks::get_instance(‘td_ad_box’)->render(array(‘spot_id’ => ‘header’));
?>
and moove it in the good position, under the menu. I would like to keep your code because i can deasable adds on phones via theme panel.

I tried to moove it on the file menu-header.php but the add appears on the slide or on the beggining of the post.

What can i do Marius ?

Thanks very much

Radu
tagDiv Staff

I updated the docs and it will show up in search, it’s a known issue https://forum.tagdiv.com/how-to-disableactivate-visual-editor/

keywords: visual composer not working issue problem visual editor

Hope everything is ok now,
Radu O.

garyellard
tagDiv Member

Thanks guys this did the trick

davistar
Participant
#0

Hello,

am I doing something wrong or is this function not compatible with this theme? Sometimes I want to get old posts back to the top (for promotional reasons or if I update a post) but I’m not getting it to work inside the module blocks.

Greetings

julingn
tagDiv Member

Hi,

I am also working with Simple Taxonomies and am really interested in such a block for my pages.

I would also like to have the possibility to have the same styling options for taxoonomy pages as I can already use for categories.

Is there something planned for future updates?

Cheers,
Norman

Marius
tagDiv Staff

Hello,
We will fix this in the next update, until that you can add this in CSS panel section

@media (min-width: 1200px) {
  .iosSlider-col-2, .iosSlider-col-2 .item {  
    height: 321px !important;
  }
}
.iosSlider-col-1, .iosSlider-col-1 .item {
  height: 320px !important;
}
@media (min-width: 1200px) {
  .iosSlider-col-1, .iosSlider-col-1 .item {
    height: 318px !important;
  }
}
@media (min-width: 768px) and (max-width: 1018px) {
  .iosSlider-col-1, .iosSlider-col-1 .item {
    height: 240px !important;
  }
}

Thanks for the message!

pastordc3110
tagDiv Member

I have tested to try to fix and just was that the Visual editor of wordpress was deactivated. This means that “Text Block” from Visual composer depends on this to work. ¡Do not deactivate “wordpress visual editor” you will have problems with some blocks.

pastordc3110
Participant
#0

I´m using Visual Composer, and when I want to add a Text Block, window opens, but when I want to Save content in this Text Block, window never closes, I’ve tested this in Chrome, Mozilla, Internet explorer and always happens in all of them, ¿why?.

garyellard
tagDiv Member

Just found the issue when you change the site to Full responsive 980px it creates a grey bar under the slide images is there a simple fix for this?

Viewing 25 results - 39,426 through 39,450 (of 39,816 total)