Jump to content


Removing Content From The Bottom Of Exchange Pages Via Filters/hooks

romving content from exchange

4 replies to this topic

#1 ithemea

ithemea

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 11 November 2013 - 08:57 AM

I have a plugin that puts 4 internal linked to the bottom of every page on a client site.
The client loves this feature.

But does not want them on cart/product pages etc.

I need to know how to remove these  form the bottom of exchange pages.

I am guessing it would need to be some sort of condition hook?/filter?/ code.

I tried to look through the ocdex but could not find anything.

Would appreciate help with this.

#2 Elise Alley

Elise Alley

    iThemes Support

  • Administrators
  • Others: All Plugins, All Themes, Members, Moderators, Toolkit, Webdesign
  • 5,528 posts
  • LocationOklahoma City, OK

Posted 11 November 2013 - 11:55 AM

Hi ithemea,

I'm not sure what plugin you're using to accomplish this, but if I were you, I'd contact the developers of that plugin and ask them how to exclude pages.  If that plugin is adding to the page, then you're going to want to adjust that plugin, not Exchange.

Thanks,

Elise

#3 ithemea

ithemea

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 11 November 2013 - 04:40 PM

I don't want to adjust any plugin.
It is pointless going to someone else and asking them about a very advanced plugin they have never seen.

Doing display: none; in css is a very poor option.

Exchange is obviously creating the pages and has some hook, if statement, code that creates the pages.
Logically even if the other plugin creator knows how to exclude pages:

Exchange pages as far as my understanding goes are ghost pages.
Since I or no other coder, developer, I know has used "ghost pages"
1: the logical thing would be to assume you know more about them than anyone else.

2: The logical thing to do is:
find the action/filter in their plugin that creates the content.
find the action/filter in exchange that creates the content.

Create a filter that says. if (page is created by exchange) then filter the content (4 images) to (nothing)


Even if I could ask the other developer it is pretty useless unless I know where to look in exchange.

Would appreciate any help you could give.

#4 ithemea

ithemea

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 11 November 2013 - 05:17 PM

Found this.

Quote

<div id="posts">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<!--the next line tells the loop to NOT post the post if it is an artist post, thus showing only NEWS items-->
<?php if (in_category(ARTISTS)) continue; ?>

That would potentially be the type of thing I need to do.  Obviously this is not correct but it is along the correct lines.

What is a "ghost" page?

Is it using the wordpress loop?

Is it added to the database tables? where/how?

is it any different from a normal page in the sense that they are dynamic and generated on the fly by code
interacting with the database?

#5 Elise Alley

Elise Alley

    iThemes Support

  • Administrators
  • Others: All Plugins, All Themes, Members, Moderators, Toolkit, Webdesign
  • 5,528 posts
  • LocationOklahoma City, OK

Posted 11 November 2013 - 05:43 PM

Hi ithemea,

The plugin you are using is adding it to every page, correct?  Not just Exchange pages?  If that's the case, then you need to talk to that plugin's support or developers.  Unless they have specifically coded their plugin to add content to Exchange pages, then there isn't anything specific to Exchange they need to know.  

Exchange adds the content to the page, but it does not control everything on the page.  It still uses the template files of your theme.  So the plugin you are using is most likely hooking into the theme's template files.  

Your best bet is to talk to the developers or support team for the plugin you are using to add the links to each page.  They should know how (or if it's even possible) to exclude specific pages or pages types.

Thanks,

Elise



Reply to this Topic


ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Exchange ecommerce plugin forum.


  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users