Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Sal Barry

    (@sal-barry)

    @bcworkz and @sterndata,

    Thanks to your help, I figured it out.

    There were actually three problems.

    1. I needed to use the compound selector of:

    a h2.class-entry

    2. Actual blog post pages use this selector for the headline:

    h1.class-entry

    3. My friend was using an iPhone, which was foisting the breaks, so I added in the browser-specific prefixes:

    -moz-hyphens:none;
    -ms-hyphens:none;
    -webkit-hyphens: none;
    hyphens:none;

    These three things combined did the trick, eliminating the unwanted hyphenations.

    However, I would not have figured these out if not for your above replies, as they helped me solve the problem.

    Thank you both.

    Sal

    Thread Starter Sal Barry

    (@sal-barry)

    Thank you both for your help thus far.

    When I view the source, here is the code in question:

    <h2 class="entry-title">
    <a href="https://www.buffalohockeybeat.com/report-sabres-face-rangers-new-york-winter-classic/" rel="bookmark">
    Report: Sabres to face Rangers in New York Winter Classic
    </a></h2>

    So it does appear to be h2 in this case.

    I will try removing the h2 in my custom css and see if that works or not.

    Thread Starter Sal Barry

    (@sal-barry)

    OK, I added it, and it had no change.

    Here is what I put in my child theme style.css:

    h2.entry-title {hyphens: none;
    		word-break: keep-all;}

    Of course, what is really strange is that nothing is working for this CSS selector. Even when I add something like background-color or font-size, it also has no effect.

    • This reply was modified 7 years, 8 months ago by Sal Barry.
    Thread Starter Sal Barry

    (@sal-barry)

    The code from the functions.php file you gave me worked perfectly.

    Many thanks!

    Thread Starter Sal Barry

    (@sal-barry)

    I added the CSS to my child style.css file.

    I created a functions.php file with the code you suggested and uploaded to the folder for my child theme.

    It did not work.

    Does the code need to be on the functions.php file for the twenty-sixteen theme, or should it work if put on a functions.php file in the child theme folder?

    Thread Starter Sal Barry

    (@sal-barry)

    OK, it seems that the ? and parameters and such in the URL are casing it to redirect to the 404 page.

    When I type in the URL to the “Wrappers Detail” page, it runs some simple PHP I put on the page for testing purposes.

    Thread Starter Sal Barry

    (@sal-barry)

    Hi bcworkz,

    Thank you for your reply.

    Here is a little more detail about the problem.

    I have a page called “Wrappers”. It uses the Pages Sidebar Template and has a conditional that checks the URL. If the URL = “pages”, it goes to the DB and populates a bunch of images and links on the page. This is working fine, but here is a link to that page:

    https://puckjunk.com/wrappers/

    If you look at that page and click on one of the images in the content area, it should take you to the “Wrappers Detail” page (which also uses the Pages Sidebar Template). The parameters are being passed along just fine, but the PHP code on the page is not running.

    At least if I got an error message, I’d know that the “Wrappers Detail” page is reading my shoddy code. But the script is not running, so I’m stumped.

    Thank you again for reading all of this.

    Sal

    Thread Starter Sal Barry

    (@sal-barry)

    Thanks, as I’ve been using WordPress less than a week, I was not aware that I should use the theme name in my search. Makes sense, though.

    Thank you for the links. I went with the plugin–it worked perfectly–because I am hellbent on getting my blog away from Blogger and over to WordPress ASAP.

    I definitely want to learn how to make child themes. That will be next on my agenda once my site is up and running.

    Sal

    Thread Starter Sal Barry

    (@sal-barry)

    I am using the Twenty Eleven theme.

    I have my site “blocked” until I get it up and running–I’m actually porting it over from a different platform, and am using a coming soon page until it is done.

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