WordPress.org

Forums

CataBlog
Picture to link to another page (21 posts)

  1. jimERo
    Member
    Posted 1 year ago #

    Is there a way to make clicking on a thumbnail (only in certain categories/galleries) link to another page? I would like to have a general products page displaying images of categories and clicking on the categories link to each style page.

    http://wordpress.org/extend/plugins/catablog/

  2. mbrsolution
    Member
    Posted 1 year ago #

    Hi jimERo have a look at this link especially part 5.

    I hope this puts you on the right track.

    Kind regards

  3. jimERo
    Member
    Posted 1 year ago #

    Hi mbrsolution,
    Thanks for the reply. I tried step 5. I put in an address in the link field and I used the shortcode in that step to make the template be gallery. When I had lightbox enabled, this step did not change the functionality. Still the title would link to the correct url but the lightbox would appear when clicking on the image. I tried disabling lightbox. Now when I clicked on the title it would link to the correct url (like before) and clicking on the image would link to the url of the image. Any ideas?

  4. mbrsolution
    Member
    Posted 1 year ago #

    Hi jimERo have a look at this post and navigate towards the end of the post. You can read what Zach suggest, I am sure that will help you with your question.

    Kind regards

  5. jimERo
    Member
    Posted 1 year ago #

    I added those two files to the theme directory, and this did not help. I also tried adding navigation="disable" into the shortcode. I thought this would disable anything from happening when you click on a thumbnail, but the lightbox still appeared. Any ideas?

  6. mbrsolution
    Member
    Posted 1 year ago #

    Hi jimERo, do you have any cache plugin installed? Can you post here the template you are using plus the chortcode?

    Kind regards

  7. jimERo
    Member
    Posted 1 year ago #

    Hi mbrsolution,
    The template I am using is called ArtWorksResponsive. The short code is : [catablog category="Products" template="gallery" navigation="disable"]

  8. jimERo
    Member
    Posted 1 year ago #

    before I was using [catablog category="Products" template="gallery"]

  9. mbrsolution
    Member
    Posted 1 year ago #

    Hi jimERo I have added some more instructions on the link above. Can you check them and see if they help you. Also on the following shortcode

    [catablog category="Products" template="gallery" navigation="disable"]

    Remove the navigation="disable" option so it will look like the following

    [catablog category="Products" template="gallery"] Also remember to change the template to the new created template.

    Let me know if this helps you.

    Kind regards

  10. jimERo
    Member
    Posted 1 year ago #

    This is the shortcode I am using [catablog category="Products" template="products"] and this is the template of name "products" :

    <div class="catablog-row catablog-gallery">
    	<code><a href="%PERMALINK%" class="catablog-image" %LINK-TARGET% %LINK-</code>REL%>
    
    <img src="%IMAGE-THUMBNAIL%" alt="" />
    		<strong class="catablog-title">%TITLE%</strong>
    
    	div class="catablog-description">%DESCRIPTION%</div>
    </div>

    and the light box still appears when I click on a thumbnail image.
    this is a link to the site 01theone.com/development/products

    here is a link to show what the catablog library entry looks like http://01theone.com/development/wp-content/uploads/2013/07/screenshotZerone.png

  11. mbrsolution
    Member
    Posted 1 year ago #

    Hi your link does not look like a proper link. Can you verify that it is a good link.

    Kind regards

  12. jimERo
    Member
    Posted 1 year ago #

    Yes i am verifying and here, sorry about that http://01theone.com/development/products/

  13. mbrsolution
    Member
    Posted 1 year ago #

    Hi when you added

    I added those two files to the theme directory, and this did not help. I also tried adding navigation="disable" into the shortcode. I thought this would disable anything from happening when you click on a thumbnail, but the lightbox still appeared. Any ideas?

    Did you add the proper php file into the two CataBlog files?

    Also in your template below,

    <div class="catablog-row catablog-gallery">
    	<code><a href="%PERMALINK%" class="catablog-image" %LINK-TARGET% %LINK-</code>REL%>
    
    <img src="%IMAGE-THUMBNAIL%" alt="" />
    		<strong class="catablog-title">%TITLE%</strong>
    
    	div class="catablog-description">%DESCRIPTION%</div>
    </div>

    You have an error, remove the <code> tag so that it looks like this.

    <div class="catablog-row catablog-gallery">
    <a href="%PERMALINK%" class="catablog-image" %LINK-TARGET% %LINK-REL%>
    
    <img src="%IMAGE-THUMBNAIL%" alt="" />
    		<strong class="catablog-title">%TITLE%</strong></a>
    
    	<div class="catablog-description">%DESCRIPTION%</div>
    </div>

    I hope this helps you.

    Kind regards

  14. jimERo
    Member
    Posted 1 year ago #

    Hi,
    Thanks for the reply. My template does not have that error, that was because of a mistake of how I pasted the code into this forum reply. When creating the files: I created a file called single-catablog-items.php and a file called taxonomy-catablog-terms.php in my theme's directory, in the ArtWorksResponsive-Child folder. Should I have put this in the Catablog directory?

  15. mbrsolution
    Member
    Posted 1 year ago #

    Hi try putting those files in the theme parent folder.

    Kind regards

  16. jimERo
    Member
    Posted 1 year ago #

    I put them there. I just made blank files, though, and saved them with those names that i posted above. That is the correct procedure? blank files

  17. mbrsolution
    Member
    Posted 1 year ago #

    Hi jimERo if you made them blank files then CataBlog will not be able to use those files. You need to follow these instructions found in Zach's website.

    Kind regards

  18. jimERo
    Member
    Posted 1 year ago #

    Hi mbrsolution,
    I do not understand the instructions. "To control how these pages are rendered you need to add two files into your WordPress Theme's directory. These file act similarly to the single.php and archive.php files found in most standard WordPress themes, but are specific to CataBlog items and categories.

    Single CataBlog Item Page: single-catablog-items.php
    CataBlog Category Archive: taxonomy-catablog-terms.php" It just says add these two files. Where are these files?

  19. mbrsolution
    Member
    Posted 1 year ago #

    Hi, you have to create the two files yourself and add the content as per instructions to better control CataBlog. Simply use notepad in windows or any text editor to create the two files, then simply copy and past into these files the correct data for example open single.php and copy all the content into single-catablog-items.php......and follow the instructions found here.

    I hope this helps you.

    Kind regards

  20. jimERo
    Member
    Posted 1 year ago #

    Hi,
    I did
    " CataBlog now has a Public option, which if turned on allows you to integrate your catalog into your site. Each catalog item and category will be given a permalink. To control how these pages are rendered you need to add two files into your WordPress Theme's directory. These file act similarly to the single.php and archive.php files found in most standard WordPress themes, but are specific to CataBlog items and categories.

    Single CataBlog Item Page: single-catablog-items.php
    CataBlog Category Archive: taxonomy-catablog-terms.php"

    this by copying single.php and pasting into single-catablog-item.php and archive.php into taxonomy....php . I tested to see whether clicking on the image would link to the url of the link field, and it did not. The lightbox appeared. Then there is:

    "Remember that CataBlog also has a few core PHP functions you may use directly in your theme files. These functions are good for rendering catalogs and catalog categories.Inside either of the template files above would be a good time to use those functions. Also, if you simply want to access the CataBlog items data load up the post's meta data. Here is an example, the last two lines simply list the key-value pairs of the catablog meta data:"

    I do not understand from these instructions how to use these functions. Do I copy and paste this Php code into the files? if so, which one and where? Or do I just reference a function name? I have no PhP experience so am not familiar with these things.

  21. jimERo
    Member
    Posted 1 year ago #

    Actually, the first part of those instructions: "CataBlog now has a Public option, which if turned on allows you to integrate your catalog into your site." I do not know what this is referring to. Is this just supplying a catablog library item with a permalink? or this some other option in the settings?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic