• Resolved rootseire2014

    (@rootseire2014)


    Hi,

    I have just installed and customised image store for a client, and it is working great. At the moment, on one page, I have hacked the code so that it shows the slideshow for each gallery, and I have made some changes to it without any problem.

    On another page, I want to link to this when mobile users access the site, so that they are taken to links with the lightbox. I have been able to setup the page and add in the image store module, but, I am trying to set it up so that the slideshow links are not showing. In store.php I am using the following code:

    if($slideshow!='off'){
    		$output .= '<a data-id="' . $enc . '" href="'. $link . 'slideshow" class="url fn item-url" title="' . esc_attr( $data['title'] ) . '" rel="bookmark">';
    		}else{
    		$output .= '<a data-id="' . $enc . '" href="'. $link . '" class="url fn item-url" title="' . esc_attr( $data['title'] ) . '" rel="bookmark">';
    		}

    Here I am trying to get the PHP code to pull in the variable $slideshow which is posted on the wordpress page. I have tried to use the “insert php” plugin, but the store.php page is not accessing the variable.

    Is there any way that I can pass a variable either on the worpress page, or in the code in store.php, which will recognise that that page is for mobile?

    Thank you in advance,
    Pat

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Gallery Page’ is closed to new replies.