Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thats because you have modified the css code too much.

    look for this in your sites main css file:

    .post-content pre {
    
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    line-height: 140%;
    padding: 0.5% 1.5%;
    background: #2E2E2E;
    font-size: 0.8em;
    color: #FFF;
    border-radius: 6px;
    }

    and change this “line-height: 140%;” to “line-height: 0%;”

    Very likely it will affect another part of your site though as the modifications you made are sporadic.

    @keyur,

    you seem to be having a lot of issues with your template and you also want a lot of modifications to the styling. It might be easier for you to just get a template that closest resembles what you want. However if you insist on using the same template you will have issues with some plugins that don’t quite fit your styling since you have made a lot of changes. Anyhow, your video thumbnail issue can be fixed by adding this code to your css file (in your child theme):

    .page-id-9 .post-content pre {
    font-size: 0.03em !important;
    }

    It is not elegant and definitely not the right way of doing it but it will work as a patch on that specific page only. If you have others that need the code as well just change the page id.

    @electriiwi forgot to mention, that code might affect other parts of your site so you might just want to make it only work for that particular page with a page-id on the css

    @keyur11 I have no idea what your site is so i cannot help you.

    @electrickiwi No problem, glad to help out

    It is not the plugin it is your template css.

    here is the issue:

    .row {clear: both;
    width: 600px;}

    on line 459

    You have a set width of 600px, try changing it to 100%

    No API key needed. WordPress has phased out of them. Leave it as is or erase and use “0”. However, if you are in a self hosted site you might actually need an API key but that you should have already as it came with the wordpress welcome email on install.

    So i went and did a scrape (Facebook Debugger) of one of your pages, the Roasted Cauliflower one and it is basically what i said in the other post.

    This is the first image selected by FB:
    “height”: 300,
    “url”: “http://babyproofedparents.com/wp-content/uploads/2014/01/268912_211689558874550_8374098_n-206×300.jpg”,
    “width”: 206

    Notice all the numbers associated with it? Well i think that confuses FB and makes it the main first image.

    Now i will assume the image you want is the Cauliflower one? If so you are way down the list and this is what it looks like scrapped:

    “url”: “http://babyproofedparents.com/wp-content/uploads/roasted_cauliflower-300×200.jpg”

    Rename it “roasted_cauliflower-600×300.jpg (big is good but make sure it is 3 to 1 on the size and FB will choose this one)

    I hope it helps you as it took me a week to figure it out for me 🙂

    Also almost forgot, the image with all the numbers….rename it with out adding a size or any numbers to it.

    Thread Starter surge74

    (@surge74)

    Alright so i figured out the issue regarding the inconsistency so i will try to explain how Facebook worked with my site so it can hopefully help someone else out.

    If you have a featured image as well as thumbnail images on the page you want people to share, you need to make sure that the image file names are proper. By proper i mean that the thumbnail images (or any image you don’t want to be shown instead of the featured image) must not have dimensions in the title. For example: The featured image you want is, featured.jpg and then you have a thumbnail image called thumb-600×600.jpg then this will be the image used in Facebook because it has dimensions in it. I haven’t tried myself but alternatively you can also just rename the featured image with the dimensions to make it be first as well.

    Also, keep in mind that FB likes their images square so whatever image you have that has the dimensions in the title making it square, that image will be chosen as the shared image starting from biggest to smallest.

    The Facebook Application ID is found on your URL for example : http://facebook.com/(Here is your ID) but if you have a name instead of a number the easiest way would be to use this tool: http://findmyfacebookid.com

    Now if you need an App ID you will need to make one on FaceBook and the ID will be assigned to you. Hope i helped.

    Why not use the product short code?

    [products ids="1, 2, 3, 4, 5"]

    and echo it in the index page where you want like so:

    <?php echo do_shortcode('[products ids="1, 2, 3, 4, 5"]'); ?>

    If you want to display the whole single product page you can use this:

    <?php echo do_shortcode('[product_page id="99"]'); ?>

    Just change the id to yours

    Forum: Plugins
    In reply to: [Football Pool] Charts
    Thread Starter surge74

    (@surge74)

    Fixed…. i did the old IT trick and cleared my cache.

    Forum: Plugins
    In reply to: [Football Pool] NFL Season

    Antoine did a great job with this plugin. I was able to convert it last year to NFL format and did so again this year. Get it – Use it – Promote it!

    http://pickem.thesidelinereport.com

    Thread Starter surge74

    (@surge74)

    Thank you for taking the time to explain this. Now you are correct, i did remove the credits because i redid 95% of the css code as well as the functions.php and index.php files. I couldn’t find a theme that would do exactly what i wanted anywhere and i wanted to learn code (i started with zero css, html, javascript, php knowledge 6 months ago). Since the theme i actually want to use the code on is live i already have a MAMP running and i use the genesis theme. I tried the code there as well and it did not work. From my understanding of php, the “if” command is a generic code is it not? It can be placed in many locations as i have done so already in other forms. I have read on here where people have asked similar questions as mine so i assumed it would be ok to do so.

    I understand what you are saying regarding the theme as you actually took the time to be civil about it instead of just pointing me to a link. But my question is more of a “is it possible to do”. I am planning on building other web sites with the wordpress CMS and i am sure there are many others that use these forums much like i did to learn. So i still don’t understand how asking about how possible a php statement is can be wrong and asking if the code itself is a viable one is wrong. When looking through the forums i can find several questions regarding building new headers and new page templates where the questions surround wordpress codex as i have, no matter the theme (some don’t even mention their theme). But fine, you guys control the dissemination of information and i won’t fight it, i will go somewhere else to see if the code is possible and hopefully someone else that needs it will find it there. Enjoy your coffee, i am on my third for the day already – Juan Valdez is my hero lol. Thanks again for taking the time Jan

    Thread Starter surge74

    (@surge74)

    Also, the reason i had two accounts was because i couldn’t get on it months ago so i made a new one. As you can see i never re-used it as i was only trying to use one.

    Thread Starter surge74

    (@surge74)

    It was pertaining to this thread i started: https://ww.wp.xz.cn/support/topic/display-a-specific-div-by-category-in-headerphp?replies=9

    all i wanted to know was if the code i put together was correct for what i was trying to achieve. her only question was “what theme i was using?” merely for the purpose of blocking it, at least that’s what it seems like in retrospect. You will see on there that i answered truthfully but also stated that i changed the template substantially.

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