$6.4 million, or 0.8%, in the first six months of 2024, compared to the first six months of 2023, due in part to a decline in customer traffic in our retail stores. Comparable sales declined 2.6% in the six months ended August 3, 2024. On a consolidated basis, our direct-to-consumer sales grew to approximately 72% of total net sales for the six months ended August 3, 2024, compared to 71% for the six months ended July 29, 2023.
Gross Profit
Gross profit decreased $3.3 million, or 1.0%, to $310.9 million for the second quarter of 2024, compared to $314.2 million for the second quarter of 2023. As a percentage of net sales, gross profit increased to 45.5% for the second quarter of 2024, compared to 45.2% for the second quarter of 2023, driven by improvement in the Brand Portfolio segment gross margin. The increase primarily reflects higher merchandise margins and a higher mix of retail sales, including e-commerce sales from our owned brands and sales from our branded retail stores, both of which have higher gross margins than our wholesale sales. These increases were partially offset by a decrease in the gross margin in the Famous Footwear segment, driven by higher levels of promotional activity.
Gross profit decreased $3.1 million, or 0.5%, to $620.0 million for the six months ended August 3, 2024, compared to $616.9 million for the six months ended July 29, 2023. As a percentage of net sales, gross profit increased to 46.2% for the six months ended August 3, 2024, compared to 45.4% for the six months ended July 29, 2023, driven by an increase in the gross margin of our Brand Portfolio segment, partially offset by a decrease in the gross margin of our Famous Footwear segment, due to the same factors described above.
We classify certain warehousing, distribution, sourcing and other inventory procurement costs in selling and administrative expenses. Accordingly, our gross profit and selling and administrative expense rates, as a percentage of net sales, may not be comparable to other companies.
Selling and Administrative Expenses
Selling and administrative expenses increased $5.6 million, or 2.1%, to $268.4 million for the second quarter of 2024, compared to $262.8 million for the second quarter of 2023. The increase was driven by a number of factors, including higher salary and benefit expenses, higher facilities costs, reflecting an increase in depreciation expense associated with the investment in Famous Footwear store renovations and upgrades to the FLAIR (Famous Localized and Immersive Retail) store concept and higher store rent expense as leases are renewed, higher marketing expenses driven by marketing investments for our Sam Edelman and Vionic brands, and higher information technology and consulting expense associated with the implementation of our cloud-based ERP platform. These increases were partially offset by lower expenses for our cash and share-based incentive compensation. As a percentage of net sales, selling and administrative expenses increased to 39.3% for the second quarter of 2024, from 37.8% for the second quarter of 2023.
Selling and administrative expenses increased $18.8 million, or 3.6%, to $534.7 million for the six months ended August 3, 2024, compared to $515.9 million for the six months ended July 29, 2023. The increase was primarily due to higher salary and benefit expenses, higher marketing expenses driven by marketing investments for our Sam Edelman and Vionic brands and higher information technology and consulting expense associated with the implementation of our cloud-based ERP platform, partially offset by lower expenses for our cash and share-based incentive compensation. As a percentage of net sales, selling and administrative expenses increased to 39.8% for the six months ended August 3, 2024, from 38.0% for the six months ended July 29, 2023.
Restructuring and Other Special Charges, Net
Restructuring and other special charges of approximately $1.7 million for the three and six months ended July 29, 2023 were associated with expense reduction initiatives, primarily severance. Refer to Note 5 to the condensed consolidated financial statements for additional information related to these charges. There were no corresponding charges for the six months ended August 3, 2024.
Operating Earnings
Operating earnings decreased $7.2 million to $42.5 million for the second quarter of 2024, compared to $49.7 million for the second quarter of 2023, reflecting the factors described above. As a percentage of net sales, operating earnings were 6.2% for the second quarter of 2024, compared to 7.1% for the second quarter of 2023.
Operating earnings decreased $14.0 million to $85.3 million for the six months ended August 3, 2024, compared to $99.3 million for the six months ended July 29, 2023, primarily reflecting lower net sales. As a percentage of net sales, operating earnings were 6.4% for the six months ended August 3, 2024, compared to 7.3% for the six months ended July 29, 2023.