Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jasperg

    (@jasperg)

    @ bcworkz thanks for your help. This is exactly what I suspected. I was just about to reply with my solution which dose exactly as you suggested. As a side, the reason I am reluctant use a cashing plugin for this page is that it will be a list of individual second hand books that (hopefully) be sold throughout the day/week so need to be up to date so as not to disappoint too many people trying to buy items that are already sold. I am wandering if I could cash the page still but add un-cashed meta data in the footer that lists sold items, so I could then use javascript to mark them as sold? but I have not looked into how to cash all but the footer. Is this posable/desirable?

    After settling on the option you describe (using custom meta field to list in order and adding it as a title)

    I used WP_Query to order by a field wpcf-topic

    Then declared variable $last_topic before the loop with nothing in it and then in the loop at the start $topic=(get_post_meta( get_the_ID(), 'wpcf-topic', true )); and then

    if ($last_topic !== $topic){ echo "<h1>"  .  $topic   .  "</h1>";
    }

    then at the just before the end of the loop

    $last_topic=$topic;

    So now <h1>Topic</h1> is not shown till a new topic comes up
    If any one reading this want the full code that I used, I posted a more detailed reply to myself on a more more specific question I asked on of how to do this on

    https://wordpress.stackexchange.com/questions/151987/create-a-list-of-posts-with-topic-headdings

    It looks to me as if first and last are already added on both pages you linked to.
    Did you work it out. Or do you still need help?

    Thread Starter jasperg

    (@jasperg)

    @bcworkz

    Thanks so much for your help. I still have not got it to work, but following your advice I did get a better understanding of what was going on, and it seems what I wanted was more complicated than it was worth for the time being. It will have to be put on a list of things to do at a latter date. (when I am better at php)

    jasperg

    (@jasperg)

    Thats strange. Maybe open all the style sheets related to your theme and try

    ctrl-f: box-shadow

    To find any place a box shadow is mentioned and see if you can work out it is connected to the header.

    I think you want #header .sleeve, but I am not connected to the development of this theme, I was just playing with it and found your question on the forum. so not sure I can help much more.

    If you are playing round with the theme files. remember to back them up! also if you are not using a child theme do not update the theme if you want to keep an changes you make.

    Good luck.

    jasperg

    (@jasperg)

    hey, they seem to have made it simpler than in that last post.

    in admin just go to appearance, editor,

    then look at the list on the right, find

    stylesheet
    (style.css)

    click on that

    then find

    #header .sleeve, #wrapper, #footer {
    	border: 0;
    	-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    	-moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    }

    just replace with

    #header .sleeve, #wrapper, #footer {
    	border: 0;
    }
Viewing 5 replies - 1 through 5 (of 5 total)