Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 1st, 2013, 08:33 AM
Aichels Aichels is offline
 
Join Date: Feb 2013
Posts: 77
Default

I added theme shortcode to homepage to have blog posts in front page, but I noticed that if go to next page that blog is in every page. Is there way to make that I see that blog only in homepage? Maybe there is shortcode from datafeedr products what I can add in my homepage instead of setting store as homepage? Or there is other way to do it?

Last edited by Eric : April 1st, 2013 at 08:38 AM. Reason: Removed comment related to other thread.
  #2  
Old April 1st, 2013, 08:55 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

You should change this:

Code:
<?php echo do_shortcode('[blog category="215" perpage="3" ]'); ?>
To this:
Code:
[store.if page="off"]
	<?php echo do_shortcode('[blog category="215" perpage="3" ]'); ?>
[/store.if]
Eric
  #3  
Old April 2nd, 2013, 04:30 AM
Aichels Aichels is offline
 
Join Date: Feb 2013
Posts: 77
Default

Awesome, that worked! I noticed - when I change pages slider is still there, I would prefer have that slider only in homepage.

In my theme I have option to set Page title line, like in my blog page or contacts. When I add that to my store page I see it in every page including homepage. I would like to have that line in every store page except home page. How can I do that?
  #4  
Old April 2nd, 2013, 06:47 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

To remove the slider from your paged store front pages, you need to refer to this post: http://www.datafeedr.com/forums/show...1029#post41029 but you need to change this:

PHP Code:
if (!is_dfr('home')) { return; } 
To this:
PHP Code:
if (!is_dfr('home') || @$s->request->params->page>1) { return; } 
Regarding your <title> edits, this is getting into the realm of your theme developer's support, not support for your store. However you might be able to try making the following changes in your theme's header.php file.

Change this:
PHP Code:
<?php bloginfo('name'); ?>
To this:
PHP Code:
<?php if (!is_front_page()) { bloginfo('name'); } ?>
Eric
  #5  
Old April 2nd, 2013, 10:16 AM
Aichels Aichels is offline
 
Join Date: Feb 2013
Posts: 77
Default

Slider - in cycle.php I changed

if (!is_dfr('home')) { return; }
To this:

if (!is_dfr('home') || @$s->request->params->page>1) { return; }

but nothing changed in site.


Title block - in header.php that line you mention was in 5 places, so I changed it everywhere, but also nothing changed.
Just to make sure we talk about same thing - this block (https://docs.google.com/file/d/0BysN...?ups=drive_web ) what I want add above all my store pages except homepage.
  #6  
Old April 2nd, 2013, 05:16 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

I'll have to take log into your website tomorrow to take a look. I'm not on a secure connection at the moment therefore I don't want to log into your site right now. I will have a secure internet connection tomorrow afternoon.

Eric
  #7  
Old April 3rd, 2013, 11:17 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

This removed the slider on subsequent pages:
PHP Code:
if (substr_count($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], '/') > 1) { return; } 
I don't see the "Shop" text anywhere therefore I can't really remove or add it to your pages... maybe you already solved this issue.

Eric
  #8  
Old April 3rd, 2013, 03:18 PM
Aichels Aichels is offline
 
Join Date: Feb 2013
Posts: 77
Default

Thank you for sliders.

Yes I don't have that title block on shop pages, but I would like to have it there, except homepage. I have that title block in blog or my contacts.

P.S.
I know how to add that block in my store pages, but then it shows also in homepage and I loose slider.
  #9  
Old April 3rd, 2013, 03:26 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

To add that title to all but your store's front page, wrap the code responsible for displaying the title in this code:

Code:
<?php if (!is_dfr('home')) : ?>YOUR TITLE HERE<?php endif; ?>
  #10  
Old April 4th, 2013, 04:50 AM
Aichels Aichels is offline
 
Join Date: Feb 2013
Posts: 77
Default

I managed to get that title, but it is double in my Contacts and blog pages.

I added this code to my theme to get right size font, but I could get text it in same position like in contacts and I think that block is not in same length as in contacts.

#color_header h1 {
font-size: 55px;
padding-top: 40px;
padding-bottom: 53px;
}
  #11  
Old April 4th, 2013, 07:30 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Your "Shop" title code should look like the following:

HTML Code:
<?php if (is_dfr() && !is_dfr('home')) : ?>
	<div id="pagetitle" class="row">
		<div class="grid_12">
			<h1>
				Shop 
			</h1>
		</div>
		<div class="clear"> </div>
	</div>
<?php endif; ?>
Eric
  #12  
Old April 4th, 2013, 08:41 AM
Aichels Aichels is offline
 
Join Date: Feb 2013
Posts: 77
Default

Perfect!

Thank you very much.
  #13  
Old April 4th, 2013, 09:18 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Great!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change my front page back to blog posts? sdc247 Questions 1 March 1st, 2012 07:16 PM
Can I create category-like page for blog posts? cashnow Questions 2 July 10th, 2011 05:40 PM
Blog posts do not display prices harry81 Problems 4 February 24th, 2011 09:20 AM


All times are GMT -5. The time now is 06:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.